Commit Graph

91 Commits

Author SHA1 Message Date
frosch
fd986f651a (svn r23987) -Fix (r23000): Also reset the font glyph cache when switching blitters. 2012-02-25 17:20:02 +00:00
michi_cc
a55a77cbae (svn r23889) -Codechange: Centralise sprite resizing in one place. (peter1138) 2012-02-04 13:29:13 +00:00
truebrain
7cfe482045 (svn r23592) -Fix (r23590): forgot one case 2011-12-18 19:39:24 +00:00
rubidium
b3fc75c72d (svn r23582) -Fix [FS#4870]: add missing characters for certain languages and the large font
-Codechange: don't remove large font glyphs because they are broken in the original font, just fix them up in openttd.grf using action A
-Change: make extra characters more consistent with the original font
  All by PaulC.
2011-12-17 21:42:11 +00:00
rubidium
a531ec1899 (svn r23446) -Codechange: move _cur_palette and it's related first/count dirty variables into a single structure 2011-12-08 18:13:29 +00:00
glx
fd3a27fa2e (svn r23381) -Fix (r23380): win9x compilation 2011-11-30 20:17:27 +00:00
glx
514bc0bc81 (svn r23380) -Add: monospace font detection for win32 (also ignore duplicates) 2011-11-30 17:05:14 +00:00
peter1138
b84174fd4d (svn r23316) -Feature: Add ability to zoom in to 2x and 4x level. 2011-11-24 12:38:48 +00:00
peter1138
9e0e4bf639 (svn r23315) -Codechange: Only encode sprites for zoom levels that will be used. 2011-11-24 12:26:44 +00:00
rubidium
dd26086629 (svn r23279) -Codechange: try to prevent slanted and skinny fonts with fontconfig. This should generally make the fallback choice better legible 2011-11-20 12:10:41 +00:00
rubidium
97d1969a69 (svn r23277) -Codechange: fallback font support for fontcache 2011-11-20 12:02:06 +00:00
rubidium
17db686187 (svn r23275) -Codechange: allow loading of the monospace (freetype) font at another moment than the other fonts 2011-11-20 11:59:36 +00:00
rubidium
49047246fa (svn r23274) -Add: internal support for a monospaced sprite font 2011-11-20 11:56:51 +00:00
rubidium
c2ea904860 (svn r23271) -Codechange: don't repeatedly initialise and free the freetype library 2011-11-20 08:08:13 +00:00
rubidium
3e09fa8102 (svn r23268) -Fix (r23267): compilation failed on Windows 2011-11-19 21:09:52 +00:00
rubidium
2ce44dc201 (svn r23267) -Codechange: unify the font name setting of the font cache 2011-11-19 21:02:37 +00:00
rubidium
e3905eecbb (svn r23265) -Codechange: replace the setfallbackfont callback function with a class to call back 2011-11-19 18:43:00 +00:00
rubidium
c77ae1f54c (svn r23243) -Codechange: give a clearer error when the sprite font failed to provide a sprite or fall back to the freetype font if that's loaded 2011-11-17 21:13:05 +00:00
peter1138
8e4081f183 (svn r23038) -Fix: Check that the selected font size is valid the font face in use and choose the nearest size to that selected if not. Font metrics should then just work. 2011-10-18 17:57:42 +00:00
peter1138
9024c77635 (svn r23009) -Change: Improve appearance of antialiased text with shadow. 2011-10-07 07:48:59 +00:00
michi_cc
7c325fcb78 (svn r22874) -Fix [FS#4747]: Check size of various buffers before allocation. (monoid) 2011-09-02 20:16:41 +00:00
frosch
4748e49f4a (svn r21789) -Fix [FS#4405]: When the font misses the fallback character '?', use the sprite font's '?' instead. 2011-01-14 16:39:41 +00:00
rubidium
a73f9183a5 (svn r21475) -Fix: MSVC's code analyser says DeleteObject shouldn't be called with NULL 2010-12-12 11:34:01 +00:00
rubidium
36a7e75c44 (svn r21320) -Fix (r21298): somehow a semicolon got lost 2010-11-25 14:55:01 +00:00
glx
9904cb7372 (svn r21298) -Fix [FS#4261]: fonts set in openttd.cfg were not properly checked for missing glyphs on language change 2010-11-23 17:59:50 +00:00
planetmaker
d9647c0e3b (svn r21197) -Fix [FS#4001] (r17794): [OSX] Finding a fallback font failed when compiling for OSX 10.4 as it tried to match also OpenTTD-specific control characters 2010-11-15 08:31:07 +00:00
frosch
c18839704b (svn r20286) -Codechange: Unify end of doxygen comments. 2010-08-01 19:44:49 +00:00
frosch
5b86c79fce (svn r20283) -Codechange: Unify start of doygen comments. 2010-08-01 19:22:34 +00:00
alberth
1743c86610 (svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements. 2010-07-31 21:02:56 +00:00
alberth
137e2b64c9 (svn r20211) -Codechange: Indented code should have curly braces around it. 2010-07-24 10:14:39 +00:00
rubidium
a70fd540fc (svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int 2010-05-13 10:14:29 +00:00
rubidium
d5357c6545 (svn r19753) -Fix [FS#3740]: try a bit harder to find a suitable font that can be loaded, i.e. while searching for a suitable font test whether you can open it and if not search further instead of always returning the first suitable font even when it can't be loaded 2010-05-03 00:00:34 +00:00
peter1138
550b68c96e (svn r18712) -Fix (r5167): Spurious character spacing with free type fonts for small and large font sizes. 2010-01-04 16:37:53 +00:00
glx
da99cc15e9 (svn r18564) -Fix: silence a warning 2009-12-20 14:05:58 +00:00
rubidium
da30e736ca (svn r18330) -Cleanup: remove some unneeded includes 2009-11-28 20:35:25 +00:00
peter1138
010627a303 (svn r18096) -Fix (r5079/r7158??): Use free type ascender/descender metrics to position font offset correctly. 2009-11-15 14:39:37 +00:00
rubidium
224f4e0197 (svn r18028) -Codechange: unglobalise some functions 2009-11-09 10:40:33 +00:00
michi_cc
685a7752f2 (svn r17794) -Feature: [OSX] Implement automatic fallback font selection for OSX. 2009-10-17 22:36:43 +00:00
rubidium
982b8ee5fc (svn r17693) -Cleanup: remove some unneeded includes 2009-10-04 17:16:41 +00:00
rubidium
19b83eb5aa (svn r17336) -Codechange: move some os specific files into src/os/ 2009-08-31 22:38:37 +00:00
rubidium
99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
alberth
8d3e094920 (svn r16612) -Fix (r16605): ASCII_LETTERSTART should be defined unconditionally (leeus) 2009-06-21 08:35:05 +00:00
alberth
f773774d15 (svn r16605) -Codechange: Move ASCII_LETTERSTART to the right source file. 2009-06-20 15:25:28 +00:00
alberth
88d75805af (svn r16604) -Codechange: Use FS_BEGIN for iterating over fonts. 2009-06-20 15:05:59 +00:00
peter1138
67485b5c76 (svn r16602) -Fix (r13831): Antialiased fonts broken; check pixel_mode instead of palette_mode. (Why did it work at some point?) 2009-06-20 09:35:22 +00:00
rubidium
f457d40ec0 (svn r15851) -Fix (r15849): compile failure when there's no freetype... 2009-03-25 21:35:22 +00:00
rubidium
1328acc03e (svn r15849) -Codechange: provide easy access to the real height of the used fonts 2009-03-25 20:01:34 +00:00
rubidium
af1ffc92d1 (svn r15818) -Fix [FS#2752]: some (newer) GCCs have trouble compiling the Win32 specific part of fontcache.cpp; jumps across variable declarations (Maeyanie) 2009-03-22 21:07:55 +00:00
glx
47b2e67373 (svn r15758) -Fix (r15757): win9x compilation 2009-03-18 00:55:10 +00:00
glx
5793f78b16 (svn r15757) -Fix/hackaround (r15314): of course on some system searching a font using its english name fails. So now we search the font using the localised name and use the english name for the final 'validation' only. 2009-03-18 00:51:44 +00:00