symbol.ttf displays as hollow rectangle!_NEWLINE_!(default) when rendering with PJA toolkit
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mark_Howard
Posted On:   Monday, October 22, 2001 09:19 AM

i'm using the PJA toolkit as an AWT replacement in a headless environment (no X server) on a linux box. i'm using java 1.3 and rendering fonts using PJA truetype support. most fonts render without a problem but the symbol fonts (symbol.ttf, webdings.ttf, marlett.ttf, etc.) will get rendered as a hollow rectangle. i understand that this is the default glyph when a character cannot be succesfully encoded. my font.properties file includes the following lines: serif.0=Symbol,SYMBOL_CHARSET,NEED_CONVERTED filename.Symbol=SYMBOL.TTF fontcharset.serif.0=sun.awt.CharToByteSymbol i'm also dynamically setting the java.awt.fonts    More>>

i'm using the PJA toolkit as an AWT
replacement in a headless environment
(no X server) on a linux box. i'm
using java 1.3 and rendering fonts
using PJA truetype support. most
fonts render without a problem
but the symbol fonts (symbol.ttf,
webdings.ttf, marlett.ttf, etc.) will
get rendered as a hollow rectangle.
i understand that this is the default
glyph when a character cannot be
succesfully encoded. my font.properties
file includes the following lines:

serif.0=Symbol,SYMBOL_CHARSET,NEED_CONVERTED
filename.Symbol=SYMBOL.TTF
fontcharset.serif.0=sun.awt.CharToByteSymbol

i'm also dynamically setting the java.awt.fonts
property to point to the fonts directory

i've tried passing the String in manually
to CharToByteSymbol using the convert
and canConvert methods but strangely it
claims to be unable to convert my string.
i'm not sure if this is the problem but
i'm grasping at straws.

has anybody had any success painting with
symbol true type fonts on linux? thanks
for your help.

mark

   <<Less
About | Sitemap | Contact