Our Open Source Windows application needs a good, as full as possible, Unicode font for a specific function (this is to display most world-wide characters, including Korean, Indian, Chinese and Japanese characters, and is unrelated to the 'locale' being used). If it can't find one via calls to the API 'EnumFontFamiliesEx', it issues a message to the user saying this function is, unfortunately, disabled.
This is OK under Windows as it can either use 'Arial Unicode MS' supplied free with most recent versions of Microsoft's Office or 'Arial Unicode' (which is the same but sold separately) or, if the user doesn't have MS Office, it can use 'Lucida Sans Unicode', which is supplied free with all versions of Windows since it supported Unicode.
However, none of these fonts seem to be freely available under Linux and a user has asked us to suppress the message if running under Wine.
It appears that Wine does not want an official method to determine if the application is running under Wine so that we can decide not to display the message preferring instead to fix the 'Bug'. However, this isn't a 'Bug'.
Not being a Linux user, would someone please tell me what Unicode font is freely available on all/most distributions of Linux (hopefully as a no cost option to the user)? Also, will it be found via 'EnumFontFamiliesEx' and used in the same manner as any other font by a Windows application?
Many thanks.
Unicode Font
-
- Level 5
- Posts: 336
- Joined: Mon Nov 24, 2008 8:10 am
There are various free to use fonts like Red Hat liberation fonts, bitstream fonts and others. I'm not sure if they provide all the characters you need though. If they do ship one of these fonts with your app. (Most distributions also ship these, you could use font overrides in Wine to make wine pick these up as Arial and so on)
Many thanks.
As per my original post, does Wine support the Windows API 'EnumFontFamiliesEx'?
The response from Dimesio's gives a link to http://unifont.org/fontguide/ gives a reference to 'GNU Unifont' at http://unifoundry.com/ that looks promising.
As per my original post, does Wine support the Windows API 'EnumFontFamiliesEx'?
The response from Dimesio's gives a link to http://unifont.org/fontguide/ gives a reference to 'GNU Unifont' at http://unifoundry.com/ that looks promising.