Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Jagging of fonts: (14 Items)
   
Jagging of fonts  
Hi,

I'm facing jagging of fonts around its edges for any font. 
1) Is there some font which doesn't have jagging on its edges??
2) Is there a way to avoid jagging in fonts?

3) Can anti-aliasing extinguish jagging? 
http://www.qnx.com/developers/docs/qnx_4.25_docs/photon114/run_inst/font.html..In this link they have claimed that the 
edges can be smoothened 
using fontcfg. But I'm using QNX 6.3.2 and I'm not able to locate fontcfg.

Thanks in advance,
Lakshminarayanan.R
Re: Jagging of fonts  
Generally all True Type Fonts that shipped with QNX 6.3.0 are capable of antialiasing. Take a look at the phfont[.so] 
docs that explains how to set it up globally. You can also just add 'a' to the Pt_ARG_TEXT_FONT of the PtLabel family of
 widget to display antialiased strings. Check this link for possible values: http://www.qnx.com/developers/docs/6.3.2/
photon/lib_ref/pf/pfgeneratefontname.html

Re: Jagging of fonts  
Both Pt_ARG_TEXT_FONTS anf phfont.so doesn't make any visible difference to the jagging of the font. Any other 
suggestions to avoid jagging?

To make the context much clear. Just open an editor select arial font, some bigger size, bold option and type a sample 
text. You will be able to visibly see the edges of the character jagged.

Re: Jagging of fonts  
I select Arial32. Clicked on 'Aa'. Typed some text. Looks good to me.
What resolution are you using?
Re: Jagging of fonts  
I'm using a system with resolution 1024x768 and 32 bit true color - 16M. 
Btw, what is the resolution and color your monitor is set to?

I'm not sure if you are carefully observing it for which I have attached a sample image which shows a Aa - arial72. 
Jagging is marked with Red.
Attachment: Image sample.jpg 46.4 KB
Re: Jagging of fonts  
I've attached what I see on my screen (1280x1024x16). The 'arial' is mapped to swis721BT on my system. What font is it 
for you? (check /usr/photon/font_repository/fontmap).
The font tag I used is 'arial72a'.
Attachment: Image Aa.png 2.42 KB
Re: Jagging of fonts  
1) The mapping is same as in your system. From the image, I could see that your fonts are also jagged but it appears to 
be smoothened which is what I'm looking for!!! Could you figure out any other missing link between our system? 

2) And what does the last character 'a' in "Arial72a" denote? Is it anti-aliasing?? If I apply anti-aliasing by 
selecting "Aa" the text becomes invisible. 
Re: Jagging of fonts  
I can only think that we are using different fonts.
Try to use swis721bt directly.
Re: Jagging of fonts  
It is not only with this font, as a matter of fact, this is visible across all the fonts.

I just don't know if this is a problem with my system. Can you just post me an image with few numbers in arial with font
 size 100+ with a light blue/ green color in a dark background?? This will be highly appreciated.
Re: Jagging of fonts  
Run 'fontadmin'

Click on 'Options'
Expand 'server'
Expand 'FontFusion Core 2.xx'

See if 'Anti-Aliasing' is listed there.  Your anti-aliasing is disabled for some reason.  Also please post:

use -i /lib/dll/phfont.so
use -i /lib/dll/font/ttfFFcore.so
use -i /usr/photon/bin/phfont

Please tar up and attach all the font* files under /usr/photon/font_repository.

Please tar up and attach is anything exists in $HOME/.ph/font
Re: Jagging of fonts  
FYI, there is now a 'Graphics' project which has forums you can post inquiries to.
Re: Jagging of fonts  
The jagging is vanished now!!!

Enabling the the anti aliasing option in the fontadmin solved the issue. Strangely, I had earlier tried this, but was 
trying from phindows. From phindows this change didn't work. But, when I tried it from the QNX machine directly it 
worked.

Thanks for all your suggestions!
RE: Jagging of fonts  
The 6.3.2 and earlier font configuration can be troublesome, it has been much stream lined in 6.4.0 .  For one, you just
 use the simple command line utilities, and simple configuration files.  There are no longer situations where it looks 
like something is configured in one place, but negated by something else.
 
Glad you got it working!
 
-Derek

________________________________

From: Lakshminarayanan R [mailto:community-noreply@qnx.com]
Sent: Wed 18/03/2009 2:14 PM
To: momentics-community
Subject: Re: Jagging of fonts



The jagging is vanished now!!!

Enabling the the anti aliasing option in the fontadmin solved the issue. Strangely, I had earlier tried this, but was 
trying from phindows. From phindows this change didn't work. But, when I tried it from the QNX machine directly it 
worked.

Thanks for all your suggestions!

_______________________________________________
QNX Momentics Community Support
http://community.qnx.com/sf/go/post24729



Attachment: Text winmail.dat 3.73 KB
RE: Jagging of fonts  
Note that the latest versions of Phindows and phrelay (as released with
6.4.0) support antialiased fonts. This requires a lot more data to be
sent so performance may suffer. 

Regards,
Max

-----Original Message-----
From: Lakshminarayanan R [mailto:community-noreply@qnx.com] 
Sent: Wednesday, March 18, 2009 2:15 PM
To: momentics-community
Subject: Re: Jagging of fonts

The jagging is vanished now!!!

Enabling the the anti aliasing option in the fontadmin solved the issue.
Strangely, I had earlier tried this, but was trying from phindows. From
phindows this change didn't work. But, when I tried it from the QNX
machine directly it worked.

Thanks for all your suggestions!

_______________________________________________
QNX Momentics Community Support
http://community.qnx.com/sf/go/post24729