PDA

View Full Version : How to display crisp text


costis
05-15-2004, 12:56 AM
I noticed that in all Laszlo demo applications, text does not look crisp. It looks like it's antialised.
In most other RIA demos that i've seen (www.richcommerce.com, january.rr.com/flash) text looks great.
Can someone please explain how can I display text with crisp fonts in Laszlo.

Thanks in advance.

antun
05-17-2004, 08:27 AM
Which demo applications are you referring to? The default font Vera, should look very smooth, for example:

http://www.laszlosystems.com/lps/examples/components/style_example.lzo?lzt=html

You can use your own TrueType fonts too. It should appear just as good as the font you use. For example:

http://www.laszlosystems.com/lps-2.1.2/docs/lzx-reference/font.html

I'm not sure about the RoadRunner app, but I'm pretty sure that the RichCommerce presentation is a Flash movie that doesn't use fonts - in other words the text in it is paths, which is going to render differently from a font that is being rendered by the plug-in on the client.

-Antun

costis
05-17-2004, 11:44 AM
Antun,

the Laszlo example that you a refering (with the Vera font) looks OK, but it's not as good as this one:

http://promo.yahoo.com/sbc/

Is it possible to have fonts look as clear as they appear in the above url, or is the Laszlo example that you mentioned the best I can get?

TIA

antun
05-17-2004, 01:04 PM
The selectable text in the SBC app (I assume that was the text you were referring to) looks good for you because it's being rendered by your OS, and your OS has sub-pixel rendering turned on.

If you're on Windows, try turning off ClearType (not sure how to turn it off on a Mac), and take another look at the page.

As to whether you can use similar text fields in Laszlo, the answer is you will be in a future release, however it is a Flash Player 6-only feature.

-Antun

fission
10-28-2004, 08:11 AM
I've been struggling with this; sometimes I want to show anti-aliased (AA) text, and other times I want to show non-anti-aliased (NAA) text. The smaller the point size, the less I want it to AA.

The only way I've found to get text to NAA is define a style in a font that has a defined point size, and use that style/point size of any text field or group of text fields under a view that I want to be affected. It just stands to reason that a font will AA if you don't use a defined point size. I just kind of repeated myself so I can get this point through my thick head.