Ticket #67 (closed enhancement/feature request: fixed)
Change font search path
| Reported by: | mattcallow | Owned by: | somebody |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | graphics/gtk_drawing | Version: | svn |
| Keywords: | fonts | Cc: |
Description
On Ubuntu, I don't get any labels when using GTK, even though I have some of the required fonts installed (LiberationMono?-Regular.ttf and DejaVuSans?.ttf). But the fonts are installed in /usr/share/fonts/liberation and /usr/share/fonts/truetype/ttf-dejavu. Can these paths be added to the search list?
Possible patch:
Index: graphics/gtk_drawing_area/graphics_gtk_drawing_area.c
===================================================================
RCS file: /cvsroot/navit/navit/src/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c,v
retrieving revision 1.26
diff -u -r1.26 graphics_gtk_drawing_area.c
--- graphics/gtk_drawing_area/graphics_gtk_drawing_area.c 9 Jan 2008 19:08:42 -0000 1.26
+++ graphics/gtk_drawing_area/graphics_gtk_drawing_area.c 11 Jan 2008 04:21:28 -0000
@@ -68,6 +68,7 @@
".",
#endif
"/usr/share/fonts",
+ "/usr/share/fonts/liberation",
"/usr/X11R6/lib/X11/fonts/msttcorefonts",
"/usr/X11R6/lib/X11/fonts/truetype",
"/usr/X11R6/lib/X11/fonts/TTF",
@@ -75,6 +76,7 @@
"/usr/share/fonts/truetype/msttcorefonts",
"/usr/share/fonts/ttf",
"/usr/share/fonts/corefonts",
+ "/usr/share/fonts/truetype/ttf-dejavu",
NULL,
};
Change History
Note: See
TracTickets for help on using
tickets.

This was implemented in CVS. But now the font handling now uses the fontconfig library, which makes these search paths redundant. See #4. Closing ticket.