Unicode Font

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
DrK
Newbie
Newbie
Posts: 2
Joined: Sat Jul 25, 2009 2:39 am

Unicode Font

Post by DrK »

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.
User avatar
dimesio
Moderator
Moderator
Posts: 13369
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Thunderbird
Level 5
Level 5
Posts: 336
Joined: Mon Nov 24, 2008 8:10 am

Post by Thunderbird »

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)
DrK
Newbie
Newbie
Posts: 2
Joined: Sat Jul 25, 2009 2:39 am

Post by DrK »

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.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

DrK wrote:As per my original post, does Wine support the Windows API 'EnumFontFamiliesEx'?
Yes, it's seems to be fully implemented.
Locked