summaryrefslogtreecommitdiff
path: root/src/lib/font.h
AgeCommit message (Collapse)Author
2023-05-12Allow copy-construction of Font.Carl Hetherington
2023-04-19In 1c73379ed8483dcf71c5ccfc459c2c22516a9aef I changedCarl Hetherington
FontConfig::_available_fonts to use the font ID as a key, but that's totally wrong because the same Font object with the same ID can have its font filename/data changed, and in that case we don't want to use the cached font. Here we use the actual TTF/OTF font data as the key. We could have just hashed the data (whether it comes from a disk file or is held in memory) but this is slower in the case where we have the filename, as then the file must be loaded from disk for each comparison. This fixes #2518.
2023-04-19Wrap path/data in a struct.Carl Hetherington
2023-04-19Add a comment.Carl Hetherington
2022-07-11Fix font handling for DCP subtitles.Carl Hetherington
2022-06-07Rearrange subtitle font management.Carl Hetherington
With this change each subtitle coming out of the player has a reference to a dcpomatic::Font that belongs to the TextContent. This hopefully solves a few problems which all basically stemmed from the fact that previously the decoders/player were deciding what the font ID in the output DCP would be - they can't do that properly.
2021-10-09Don't ignore font settings for DCP subtitles (#2074).v2.15.167Carl Hetherington
2021-04-29C++11 tidying.Carl Hetherington
2019-05-10Put Font and Screen into dcpomatic namespace.Carl Hetherington
2019-01-27Remove specification of italic/bold fonts (#1451); synthesis will be used ↵v2.13.110Carl Hetherington
instead.
2018-02-27Add a load of explicit keywords.Carl Hetherington
2016-05-25No-op; fix GPL address and use the explicit-program-name version.Carl Hetherington
2015-11-02Fix incorrect preview of italic subtitles (#728).Carl Hetherington
This requires fonts to be configured with their italic versions so that the italic font can be given to FontConfig and hence used to render text. Bold font configuration is also added here although bold subtitles aren't yet supported.
2015-06-21No-op: remove all trailing whitespace.Carl Hetherington
2015-06-09Update hints properly when fonts are changed.Carl Hetherington
2015-06-09Hide Font members behind accessors.Carl Hetherington
2015-04-30Various bits related to subtitle font handling, particularly copying fonts ↵Carl Hetherington
to the DCP.
2015-01-06Header guard.Carl Hetherington
2014-12-20Basic pass-through of font information when using DCP subtitles.Carl Hetherington
2014-12-16Save and load subtitle font details.Carl Hetherington
2014-12-15Start of Fonts dialog for setting up subtitle fonts.Carl Hetherington