Skip to content

Commit ee43ee2

Browse files
committed
Fix variable name typo.
1 parent 6f580f4 commit ee43ee2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/osd/modules/font/font_osx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ bool osd_font_osx::open(std::string const &font_path, std::string const &_name,
122122
osd_printf_verbose("osd_font_osx::open: failed to create styled CoreText font descriptor for \"%s\" with traits=%08x\n", name, traits);
123123
return false;
124124
}
125-
font_descriptor = styled_decscriptor;
125+
font_descriptor = styled_descriptor;
126126
}
127127

128128
CTFontRef const ct_font(CTFontCreateWithFontDescriptor(font_descriptor, POINT_SIZE, &CGAffineTransformIdentity));

src/osd/modules/font/font_sdl.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ bool osd_font_sdl::open(std::string const &font_path, std::string const &_name,
9696
if (!file.open(family))
9797
{
9898
std::string full_name = file.fullpath();
99+
osd_printf_verbose("Searching font %s in '%s'/s\n", family, full_name);
99100
font = TTF_OpenFont_Magic(full_name, POINT_SIZE, 0);
100101
if (font)
101102
osd_printf_verbose("Found font %s\n", full_name);
@@ -119,6 +120,8 @@ bool osd_font_sdl::open(std::string const &font_path, std::string const &_name,
119120
return false;
120121
}
121122

123+
osd_printf_verbose("Found font '%s' style '%s'\n", TTF_FontFaceFamilyName(font.get()), TTF_FontFaceStyleName(font.get()));
124+
122125
// apply styles
123126
int styleflags = 0;
124127
if (!bakedstyles)

0 commit comments

Comments
 (0)