0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00
obs-studio/cmake
jp9000 7f0ae838d7 Add system font lookup for mac/windows
This changes the font plugin from using a font file to using a specific
installed system font, which is searched for on each specific system and
associated with the font file.  It now uses a font property instead of a
path property, and font size has been removed because the font property
now handles that.

When the module is first loaded, it will build up a list of system fonts
in order to be usable by Freetype.  It was quite painful to program this
because font files can contain multiple localized versions of their face
names, and then there was the issue where windows likes to mangle
custom style types to the font name.  Regardless, it all seems to have
worked out pretty well.

Minor issues:
- Truetype/Opentype fonts sometimes do not automatically have
  italic and/or bold styles available, it seems that the system applies
  transformations manually in those cases.  We don't do this yet,
  however, so right now a user might select a font with italic/bold
  only to discover that italic/bold doesn't always work.  Not entirely
  sure what to do about this yet.  There's probably a freetype function
  to do something like that somehow,

This also requires that iconv be used for non-windows systems to be able
to look up localized font names within font files.  Windows will use
the win32 API and code page IDs to translate font names.
2014-08-19 02:11:37 -07:00
..
helper_subdir Improve bundle fixup 2014-04-13 11:05:46 -07:00
Modules Add system font lookup for mac/windows 2014-08-19 02:11:37 -07:00
osxbundle Set minimum version on mac to 10.8.5 2014-07-23 17:52:41 -07:00
ALL_BUILD.vcxproj.user.in Move CPack win32 generator from NSIS to WIX 2014-02-02 22:38:21 +01:00
copy_helper.cmake Improve additional_install_files for debug/release 2014-07-18 22:41:11 -07:00
copy_on_debug_helper.cmake Copy and install PDB files on msvc builds 2014-07-19 01:38:41 +02:00