Closed Constellation closed 11 years ago
Actually what eventually we will do is to scan the specified font directories, e.g., /Library/Fonts, and build the font list to be used. It'll be like FcDirScan; cf. http://freedesktop.org/software/fontconfig/fontconfig-devel/fcdirscan.html
Note escort is generating the OpenGL textures of fonts directory from TrueType font files using FreeType. This is intentional to minimize the dependency on the other operating systems beyond the C/C++ standard libraries, which is one of the reasons why ES web browser is one of the sub-projects in the ES operating system project. :grinning:
Added basic OS X fonts to fontList at 4ccfca8a6198bfdd6ac4578399d9f8d25b53b400
Missing fonts, building Escort in OSX is available but executing is not.
I suggest discoverying fonts by code. For example, https://gist.github.com/Constellation/4946675 works and lists available font pathes on OSX.
But since this code touches CoreText framework directly, code becomes a little complicated. So I also suggest adding backend-specific code directory such as
src/font/mac
and enabling Objective-C++ building support to Makefile.am.