[mapguide-internals] Patch for ticket 532 (MGOS should find fonts on Linux)

Walt Welton-Lair walt.welton-lair at autodesk.com
Tue Sep 30 09:18:49 PDT 2014


Two things:

1. To avoid code duplication, have the Linux version of FontManager::init_font_list() now call your new AddLinuxFontDirectory method with the default font directory (".").

2. Would it be better to use ":" as the path separator?  That's the default used in Linux, and could also work ok for Windows.


Otherwise patch looks good to me.

Walt

-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Jackie Ng
Sent: Tuesday, September 30, 2014 11:33 AM
To: mapguide-internals at lists.osgeo.org
Subject: [mapguide-internals] Patch for ticket 532 (MGOS should find fonts on Linux)

Hi All, 

I've made a patch for ticket 532 

http://trac.osgeo.org/mapguide/ticket/532

This adds a new general Linux-only serverconfig.ini property
(LinuxFontDirectories) that specifies a comma-delimited list of directories where MapGuide should look for additional fonts. Fonts from these directories are loaded into the FontManager as part of server initialization.

This eliminates the need of having to copy the required physical font files into the MapGuide Server's bin directory on Linux to avoid incorrect/hieroglyphic labels being rendered.

Please review. Thanks. 

- Jackie



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Patch-for-ticket-532-MGOS-should-find-fonts-on-Linux-tp5165013.html
Sent from the MapGuide Internals mailing list archive at Nabble.com.
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals


More information about the mapguide-internals mailing list