f



[wx 2.4.0, redhat 7.3, gcc 2.96] Font sample cannot find scalable fonts on custom linux machine

[wx 2.4.0, redhat 7.3, gcc 2.96] Font sample cannot
find scalable fonts on custom linux machine

Hi,

I am trying to use a True Type font in a wxWindows
application running on linux.  I'm also new to most of
the technologies invloved, linux, wxWidgets, and
KDrive (a slimmed down XFree86 build).

My current application uses the KDrive/TinyX Xvesa
Xserver built with XFree86 4.2.0 code.  I upgraded to
XFree86 4.5.0 because that version of KDrive/TinyX
supports client-side scalable fonts.  The bitmapped
font currently used is either coming from KDrive or
the wxWidgets software (I'm not sure which).

The application is running on a device that uses a Red
Hat 7.3 linux kernel, and a custom built RPL-image 
for diskless booting.  Some files are not where a Unix
app might expect to find them, which I think is what
is causing my problem.

The problem is, when I run the samples/font program on
the device, it cannot find any fonts.  When I use the
font program to navigate to where the font files are
stored, it says they do not have any "charset"
information.

I built the 'font' sample program on a normal Redhat
7.3 machine, and the sample font program was able to
find the installed fonts.  It only does not work when
I run it on the PC-based device.

I'm mostly curious how wxWindows finds the installed
fonts, and if I need to tweak the source (or create
some symlinks) to help it find them.


My overall goal is to get the sample font program to
display True Type fonts on the screen. I rebuilt the
KDrive/TinyX server to support scalable TrueType
fonts, and I added the fonts to the font directory -
and did the appropriate other linux stuff (ttmkfdir,
mkfontdir, etc).  If I can get the font program to
display scalable fonts on my Pc-device, then I will
change my orginal program to use scalable fonts - with
the expectation that it should work.

My fonts.dir and fonts.alias are stored in a
non-standard location, but KDrive is built with the
"DefaultFontPath" changed accordingly.  My fear is
that wxWidows expects the font files to be in the
normal unixy locations.

The only fonts being used by my app are the default
wxWindows fonts, with some text being displayed with a
request to use the "smallest" font.

thanks for any ideas!


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wx-users-help@lists.wxwidgets.org

0
xnooby
6/22/2005 2:19:18 PM
comp.soft-sys.wxwindows 21076 articles. 0 followers. Post Follow

0 Replies
852 Views

Similar Articles

[PageSpeed] 13

Reply: