News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
Fonts in murgaLua (or FLTK)
Author Message
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
RE: Fonts in murgaLua (or FLTK)

After messing with this a little more, it does appear to work using the font name (without the .ttf extension) for some fonts. The truetype fonts that were installed with my distribution do not seem to work, but a few of those that I downloaded myself and added to the $HOME/.fonts directory do. I assume this directory is automatically added by Xorg, since i didn't see any mention of it in the startx script or my personal configs. In any case, it does not seem to be very reliable. If you were going to use a font by its exact name, I'd recommend doing it only if you plan to be the only person using that script. I guess it would be kind of like using fonts in HTML. There is no way to say whether or not a specific font is going to work on an arbitrary machine, so you use font families instead and leave it up to the enduser to tweak his own specific fonts.

EDIT: I got the other ttf fonts working. It's not the filename that is needed, but the font name within the file. It just happened that the ones that worked had the same file names as their internal names.
I have no idea how to tell exactly what a ttf font name is other than to open the font in a text editor and search for something that looks like it might fit. I'm guessing Windows will probably give you the proper name in the "add fonts" window.
But it's still not going to work if you try this in a distributed script. The given font will need to be available on the user's system, truetype fonts don't work on non-xft murgaLua, and apparently non-truetype fonts don't work on regular murgaLua.

This post was last modified: 07-11-2007 08:54 AM by mikshaw.

07-11-2007 08:44 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
Fonts in murgaLua (or FLTK) - pdinoto - 06-24-2007, 02:37 PM
RE: Fonts in murgaLua (or FLTK) - mikshaw - 06-24-2007, 03:33 PM
RE: Fonts in murgaLua (or FLTK) - mikshaw - 07-09-2007, 02:36 PM
RE: Fonts in murgaLua (or FLTK) - mikshaw - 07-11-2007 08:44 AM
RE: Fonts in murgaLua (or FLTK) - pdinoto - 07-15-2007, 08:07 AM
RE: Fonts in murgaLua (or FLTK) - mikshaw - 07-15-2007, 09:05 AM
RE: Fonts in murgaLua (or FLTK) - pdinoto - 07-15-2007, 03:41 PM
RE: Fonts in murgaLua (or FLTK) - mikshaw - 07-15-2007, 04:33 PM
RE: Fonts in murgaLua (or FLTK) - pdinoto - 07-16-2007, 02:24 PM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: