nanogui: flnx font handling bug


Previous by date: 29 Jun 2001 09:25:14 -0000 how to use chinese hzk ?, daniel
Next by date: 29 Jun 2001 09:25:14 -0000 Re: how to use chinese hzk ?, Krist
Previous in thread:
Next in thread:

Subject: flnx font handling bug
From: Duncan Palmer ####@####.####
Date: 29 Jun 2001 09:25:14 -0000
Message-Id: <3B3C4952.157DB736@s3group.com>

In the process of messing around with font handling code in flnx, i've
come across a small bug:

In FL/Enumerations.H , Fl_Font lists 16 fonts (FL_HELVETICA thru
FL_ZAPF_DINGBATS), but in fl_font.cxx , built_in_table[] defines
contains only 15 fonts when built with NANO_X defined (its fine
otherwise). I'm not sure where the fonts listed in built_in_table[]
actually come from, so i don't know if there is a font from that
collection that should be listed and isn't - in fact, it looks as if
there is a zapf_dingbats and zapf_dinbats_bold in there, where there
should only be a zapf_dingbats (i'm assuming that comic ==
zapf_dingbats). I've just added in a bogus font to balance things up,
and have included a patch, but someone in the know should probably put
the correct font names in there.

Dunk



-- 
Duncan Palmer                                    
####@####.####
Software Design Engineer                          Phone:*   
+353-1-2185542
Silicon and Software Systems                      Fax:      
+353-1-2185590
* from Monday, June 25th, my number will be +353-1-2911561

--- flnx-0.16-orig/src/fl_font.cxx	Sat Nov 18 00:05:45 2000
+++ flnx-0.16/src/fl_font.cxx	Fri Jun 29 10:17:04 2001
@@ -237,6 +237,7 @@
   {"/usr/local/microwin/fonts/timesi.ttf"},
   {"/usr/local/microwin/fonts/timesz.ttf"},
   {"/usr/local/microwin/fonts/impact.ttf"},
+  {""},
   {"/usr/local/microwin/fonts/comic.ttf"},
   {"/usr/local/microwin/fonts/comicbd.ttf"}
 

Previous by date: 29 Jun 2001 09:25:14 -0000 how to use chinese hzk ?, daniel
Next by date: 29 Jun 2001 09:25:14 -0000 Re: how to use chinese hzk ?, Krist
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.