Skip to content

Commit ec6d283

Browse files
committed
Fix macOS custom fonts
git-svn-id: https://svn.code.sf.net/p/vice-emu/code/trunk@45853 379a1393-f5fb-40a0-bcee-ef074d9b53f7
1 parent c717d95 commit ec6d283

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vice/src/arch/shared/archdep_cbmfont.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ static const char *font_files[] = {
6969
# ifdef MACOS_COMPILE
7070

7171
# include <CoreText/CTFontManager.h>
72+
# include <pango/pangocairo.h>
7273

7374
int archdep_register_cbmfont(void)
7475
{
@@ -106,6 +107,9 @@ int archdep_register_cbmfont(void)
106107
lib_free(fontPath);
107108
}
108109

110+
/* Force Pango to reinitialize so that the available fonts are rescanned */
111+
pango_cairo_font_map_set_default(NULL);
112+
109113
return 1;
110114
}
111115

0 commit comments

Comments
 (0)