Commit Graph

49 Commits (2cdd8b74296b89c73cba86218ba7a93521d5ce3f)

Author SHA1 Message Date
Peter Nelson 2cdd8b7429 Change: Separate fontcache implementations. 2 years ago
Peter Nelson f6ad8e1c9c Change: Rename some freetype things to fontcache.
The font cache supports more than just FreeType as a font provider, but still used freetype in some naming.

This now uses more suitable terms.
2 years ago
rubidium42 77330d09fd Codechange: move font settings to std::string 3 years ago
Peter Nelson 9c6c0a0966 Codechange: Scale sprite font height once on init instead of every call to GetHeight().
Scaling is not expensive, but it does not change either, and this avoids the need for a virtual method call. This cascades back to all GetCharacterHeight(FS_xxx) and FONT_HEIGHT_xxx calls.
3 years ago
Michael Lutz 46e13313e4 Fix #8731: Always use a 32bpp blitter if font anti-aliasing is enabled. 3 years ago
Michael Lutz c6af8f16f6 Codechange: [Win32] Move Win32-specific font code to a seperate file. 3 years ago
Michael Lutz 5ad1640984 Codechange: Make OS font handle of the FontCache read-only. 3 years ago
Michael Lutz 2b0200d429 Codechange: OS-specific data for font search is not used outside of searching. 3 years ago
S. D. Cloudt 13cc8a0cee Cleanup: Removed SVN headers 5 years ago
Michael Lutz d2ed426077 Codechange: [Win32] Pass a native GDI font description around when we have one, instead of repeatedly guessing the font. 5 years ago
Michael Lutz 2675762ae9 Add: [Win32] GDI engine for font glyph rendering as a replacement for including FreeType.
Building with FreeType is still possible and will take precedence over the GDI renderer, but
the project files don't include FreeType anymore by default. Combining GDI rendering with ICU
text layout is untested.
5 years ago
Henry Wilson 7c8e7c6b6e Codechange: Use null pointer literal instead of the NULL macro 5 years ago
Michael Lutz 32ce1ce347 Add: [OSX] Text layout using the native CoreText API.
By default, the native API will be used instead of ICU, but if ICU is
forced in using configure, it will take precedence.
6 years ago
Michael Lutz 768a31bfe3 Add: [Win32] Text layout using the native Windows Uniscribe library.
Uniscribe is sometimes producing different results compared to ICU, especially
when RTL and LTR content is mixed. Comparing the results to other programs
(like editors or web browsers) leads me to believe that the result are at least
not worse than ICU and possibly better.
6 years ago
peter1138 1088ad48fc (svn r27004) -Codechange: Make GUI size apply to (sprite-font) text as well. 10 years ago
rubidium 00c05e79b1 (svn r26170) -Feature-ish: add the currently used fonts to the crash log 11 years ago
frosch dcec8b9abd (svn r25860) -Fix [FS#5737] (r25570): When clearing font cache, also clear layout cache. (adf88) 11 years ago
rubidium 0c14a586bd (svn r25493) -Codechange: support for the safer variant of ICU's getFontTable 11 years ago
rubidium 7b10e39bf1 (svn r25469) -Add: method for getting the font tables from freetype fonts 11 years ago
rubidium 43a37f7f28 (svn r25463) -Codechange: export more size related information from the fonts 11 years ago
rubidium 092c33be3f (svn r25462) -Codechange: make a better distinction between characters and glyphs 11 years ago
rubidium 8c5a7cf0ab (svn r25445) -Codechange: simplify the font loading 11 years ago
rubidium d724088a1c (svn r25442) -Codechange: move height and ascender information into the FontCache instances 11 years ago
rubidium e1a2a8275b (svn r25438) -Codechange: introduce classes for the FontCache 11 years ago
rubidium 94a5fe6b92 (svn r25437) -Codechange: rework the FreeTypeSettings structure to make it better grouped 11 years ago
rubidium 13c450a66b (svn r25436) -Codechange: split the font detection code out of the font caching code 11 years ago
rubidium 974a08bf60 (svn r23992) -Fix: compilation without freetype 13 years ago
frosch df54f25efe (svn r23987) -Fix (r23000): Also reset the font glyph cache when switching blitters. 13 years ago
rubidium 9512838a5e (svn r23275) -Codechange: allow loading of the monospace (freetype) font at another moment than the other fonts 13 years ago
rubidium dfefcab47d (svn r23274) -Add: internal support for a monospaced sprite font 13 years ago
rubidium 542c61397c (svn r23271) -Codechange: don't repeatedly initialise and free the freetype library 13 years ago
rubidium 447884fddb (svn r23265) -Codechange: replace the setfallbackfont callback function with a class to call back 13 years ago
peter1138 8a41530585 (svn r23009) -Change: Improve appearance of antialiased text with shadow. 13 years ago
glx d9173858a2 (svn r21298) -Fix [FS#4261]: fonts set in openttd.cfg were not properly checked for missing glyphs on language change 14 years ago
alberth f0ebe530ad (svn r20296) -Fix: Fallback font selection due to missing glyphs did not work as intended. 14 years ago
rubidium 82fc28f77f (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 15 years ago
michi_cc 94003b455c (svn r17794) -Feature: [OSX] Implement automatic fallback font selection for OSX. 15 years ago
rubidium 54806e7437 (svn r17696) -Fix (r17693): compile failure when compiling without freetype 15 years ago
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium e8d76e79ee (svn r15849) -Codechange: provide easy access to the real height of the used fonts 15 years ago
rubidium fea78fbfbb (svn r14618) -Feature: when the chosen language isn't supported by the current font, try to find a font that does and use that instead. Thanks to glx/michi_cc for the Windows implementation. 16 years ago
rubidium c8e8911ef6 (svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites. 16 years ago
rubidium d03994098b (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 16 years ago
rubidium a773d45885 (svn r11684) -Codechange: split gfx.h in a type and functional header. 17 years ago
rubidium 8f0e68285b (svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type. 17 years ago
peter1138 ef099dbc27 (svn r10166) -Feature(tte): Add support for antialiased typefaces via FreeType. This is configurable for each font size in the configuration settings and requires using the 32bpp blitter and suitable fonts. 17 years ago
rubidium 24c4d5b06d (svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {}; 18 years ago
rubidium 36bb92ae24 (svn r9050) -Codechange: Foo(void) -> Foo() 18 years ago
rubidium 66bbf336c6 (svn r7759) -Merge: makefile rewrite. This merge features:
- A proper ./configure, so everything needs to be configured only once, not for every make.
 - Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies.
 - A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC.
 - Proper support for OSX universal binaries.
 - Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files.
 - Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files.

Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.
18 years ago