aboutsummaryrefslogtreecommitdiff
path: root/graphics/fonts/ttf.cpp
AgeCommit message (Collapse)Author
2019-11-17GRAPHICS: Fix Missing Default Switch CasesD G Turner
These are flagged by GCC if -Wswitch-default is enabled.
2019-05-01GRAPHICS: Look for fonts.dat in extrapathBastien Bouclet
When running from the source tree, it is convenient to have extrapath set to dists/engine-data, where fonts.dat is located.
2018-12-25GRAPHICS: Add a function to load TrueType fonts from fonts.datCameron Cawley
2017-07-10Revert "COMMON: Change way the Singleton instances are instantiated"Eugene Sandulenko
This reverts commit eefa72afa1978a9dea10f5b1833fcc8f58a3468e. With this patch ConfigManager is broken.
2017-07-10COMMON: Change way the Singleton instances are instantiatedThierry Crozat
This fixes tons of warnings with clang from a recent xcode version on macOS (and possibly other systems) complaining that an instantiation of _singleton is required but no definition is available.
2016-01-08GRAPHICS: Silence an MSVC warningFilippos Karapetis
2015-12-21GRAPHICS: Introduce a size mode for TrueType fontsBastien Bouclet
Allows to match Windows font size selection by converting font heights to point sizes using the TrueType tables.
2015-04-11GRAPHICS: Force a cast to int to avoid gcc warningsMatthew Hoops
2015-03-02GRAPHICS: Fix GCC signed/unsigned warnings.Torbjörn Andersson
2014-09-03GRAPHICS: Allow negative xOffset in TTF.Johannes Schickel
This should improve the visual looks of many fonts. However, it might result in the first line of the glyph to be drawn left of the position specified in drawChar.
2014-09-03GRAPHICS: Allow to query the bounding box of chars/strings drawn with Font API.Johannes Schickel
2014-06-09GRAPHICS: Allow client code to specify TTF render mode.Johannes Schickel
This allows clients to use the default FreeType2 render mode instead of light. We really only use light as default because that's what looks best with the font we use in our GUI right now (which is the same reason why formerly light was always used in non-monochrome mode).
2013-12-01GRAPHICS: Initialize variable. CID 1133708Eugene Sandulenko
2013-11-23GRAPHICS: Allow TTFFont to cache glyphs when required.Johannes Schickel
This should allow TTFFont to display UTF-32 characters from fonts.
2013-11-23GRAPHICS: Get rid of _glyphSlots in TTFFont.Johannes Schickel
2013-11-23GRAPHICS: Let Font take uint32 as character codes.Johannes Schickel
This is required to support UTF-32 strings but does not make them work automatically!
2013-08-03GRAPHICS: Take advantage of Surface::getPixels.Johannes Schickel
2012-08-09GRAPHICS: Add a DPI parameter to loadTTFFont.Johannes Schickel
Will be used by WME.
2012-05-03GRAPHICS: Remove unused function ftFloor26_6 in ttf.cpp.Johannes Schickel
2012-03-28BASE: Free TTFLibrary singleton on shutdown.Alyssa Milburn
This uses a helper function because TTFLibrary is internal.
2012-03-19GRAPHICS: Render TTF glyphs at the right locations.Alyssa Milburn
Or at least using the fields used by the FreeType examples.
2012-03-19GRAPHICS: Fix TTF glyph drawing at negative Y positions.Alyssa Milburn
2012-02-02GRAPHICS: Obtain pointer to dst surface after bounds checks in TTF renderer.Johannes Schickel
This should really make sure we are not drawing outside the surface bounds.
2012-02-02GRAPHICS: Use monochrome font hinter for TTF's monochrome loading.Johannes Schickel
2012-01-29GRAPHICS/GUI: Implement charset mapping for TTF fonts.Johannes Schickel
The charsets used by the translations now need to have a "$(name).cp" file, which contains an charset index => unicode mapping. Otherwise create_translations will fail.
2012-01-29GRAPHICS/GUI: Implement kerning support for Font.Johannes Schickel
This adapts the related graphics code, which is the generic Font API and the TTF font implementation. It furthermore adapts the GUI to properly take care of kerning in text input widgets.
2012-01-29GRAPHICS: Add a TTF font class using FreeType2.Johannes Schickel