Commit Graph

8 Commits

Author SHA1 Message Date
Darkvater 43eb27c7a1 (svn r7362) -Fix (r7337): Free the freetype face after any possible error. For win32 do not use the
last font in the registry if no suitable font is found.
2006-12-04 18:57:09 +00:00
Darkvater 1dd14cb932 (svn r7337) -Feature: [win32] Add font selection by specifying a font-name, ala Fontconfig. Pretty
messy if you ask me, but this is what you get when MS hides the font API in the deepest
 depths... thanks Rubidium for testing.
2006-12-03 19:03:38 +00:00
Darkvater dcf1575a1d (svn r7334) -Revert accidentally committed file in r7333 2006-12-03 17:54:28 +00:00
Darkvater b789cacb40 (svn r7333) -Codechange: [win32] Extend the OTTD2FS and FS2OTTD functions to also accept conversions
into a predefined buffer insted of using the static (global) buffer. This is useful if
 the converted value will be used later on; no need to copy it somewhere else to save it.
-CodeChange: [win32] Added appropiate macros WIDE_TO_MB_BUFFER, MB_TO_WIDE_BUFFER next to
 existing WIDE_TO_MB and MB_TO_WIDE that only do work when UNICODE is defined, saves
 #ifdefs all over the place
2006-12-03 17:47:53 +00:00
peter1138 8d175ccb13 (svn r7249) -Fix (r7248): Missed a free()... 2006-11-24 18:37:40 +00:00
peter1138 6fabaeeb23 (svn r7248) -Codechange: Support reinitializing the unicode glyph map. 2006-11-24 18:35:59 +00:00
rubidium bd129cf6bf (svn r7196) -Feature: use fontconfig so one can set the font family name in openttd.cfg instead of the full path to the font. 2006-11-17 22:15:55 +00:00
peter1138 1a4f1c8177 (svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come. 2006-11-16 22:05:33 +00:00