Add: [OSX] Native font rendering without using FreeType.

This commit is contained in:
Michael Lutz
2021-02-13 22:51:18 +01:00
parent 21a2cd7bc3
commit 6755ff63e1
12 changed files with 345 additions and 18 deletions

View File

@@ -194,7 +194,7 @@ void TextfileWindow::SetupScrollbars()
/* virtual */ void TextfileWindow::SetFontNames(FreeTypeSettings *settings, const char *font_name, const void *os_data)
{
#if defined(WITH_FREETYPE) || defined(_WIN32)
#if defined(WITH_FREETYPE) || defined(_WIN32) || defined(WITH_COCOA)
strecpy(settings->mono.font, font_name, lastof(settings->mono.font));
settings->mono.os_handle = os_data;
#endif