summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Couriersud <couriersud@users.noreply.github.com>2011-04-16 18:43:35 +0000
committer Couriersud <couriersud@users.noreply.github.com>2011-04-16 18:43:35 +0000
commit4a611f7d0852882aec6c758c62a5383ef903c1c0 (patch)
tree4cc276a5b453eb598fef7177fd8cfda2ee8abfe6
parentc98ef8f23af64e8d81a037e3b60b9c6c801a1ddf (diff)
Fix loading fonts on MacOSX. [Couriersud]
-rw-r--r--src/osd/sdl/sdlmain.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/osd/sdl/sdlmain.c b/src/osd/sdl/sdlmain.c
index e54de5bcf6b..cf6f78624ca 100644
--- a/src/osd/sdl/sdlmain.c
+++ b/src/osd/sdl/sdlmain.c
@@ -698,6 +698,11 @@ osd_font sdl_osd_interface::font_open(const char *_name, int &height)
name = "LucidaGrande";
}
+ /* handle bdf fonts in the core */
+ if (name.len() > 4)
+ if (name.toupper().substr(name.len()-4,4) == ".BDF" )
+ return NULL;
+
font_name = CFStringCreateWithCString( NULL, _name, kCFStringEncodingUTF8 );
if( font_name != NULL )