international font selection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jim Puls

    international font selection

    I'm writing a Windows Forms application in C# which will run generally in a
    Western environment; e.g., EN-US. I need to access a unicode font on the
    user's system which is capable of displaying Japanese characters - often
    there will be one or more of such fonts, but I don't know which ones by
    name. If one does not exist, I need to default to a public domain font to be
    included with the app.

    How do I determine which fonts are available on the user's system, and if
    they have the required characters? I could come up with a short list of
    probable font name candidates, but is there a better way?

    If there are any references to URLs which have discussed this, that would be
    fine!

    Thanks,

    - Jim


  • Joe White

    #2
    Re: international font selection

    To determine which fonts are available, you can instantiate an
    InstalledFontCo llection object and then read its Families property.
    This will give you an array of FontFamily objects, and FontFamily.Name
    gives you the font name.

    I'm not sure how to detect which characters are available in a font,
    though. I'd be surprised if there wasn't a way to do it, but I didn't
    see it in a quick skim through the docs.


    Jim Puls wrote:[color=blue]
    > I'm writing a Windows Forms application in C# which will run generally in a
    > Western environment; e.g., EN-US. I need to access a unicode font on the
    > user's system which is capable of displaying Japanese characters - often
    > there will be one or more of such fonts, but I don't know which ones by
    > name. If one does not exist, I need to default to a public domain font to be
    > included with the app.
    >
    > How do I determine which fonts are available on the user's system, and if
    > they have the required characters? I could come up with a short list of
    > probable font name candidates, but is there a better way?
    >
    > If there are any references to URLs which have discussed this, that would be
    > fine!
    >
    > Thanks,
    >
    > - Jim
    >
    >[/color]

    Comment

    • Michael \(michka\) Kaplan [MS]

      #3
      Re: international font selection

      Looking specifically for Japanese, you can base it on a font charset value
      of 128?


      --
      MichKa [MS]

      This posting is provided "AS IS" with
      no warranties, and confers no rights.


      "Joe White" <ip255@hotmail. com> wrote in message
      news:3F0113C9.8 080508@hotmail. com...[color=blue]
      > To determine which fonts are available, you can instantiate an
      > InstalledFontCo llection object and then read its Families property.
      > This will give you an array of FontFamily objects, and FontFamily.Name
      > gives you the font name.
      >
      > I'm not sure how to detect which characters are available in a font,
      > though. I'd be surprised if there wasn't a way to do it, but I didn't
      > see it in a quick skim through the docs.
      >
      >
      > Jim Puls wrote:[color=green]
      > > I'm writing a Windows Forms application in C# which will run generally[/color][/color]
      in a[color=blue][color=green]
      > > Western environment; e.g., EN-US. I need to access a unicode font on the
      > > user's system which is capable of displaying Japanese characters - often
      > > there will be one or more of such fonts, but I don't know which ones by
      > > name. If one does not exist, I need to default to a public domain font[/color][/color]
      to be[color=blue][color=green]
      > > included with the app.
      > >
      > > How do I determine which fonts are available on the user's system, and[/color][/color]
      if[color=blue][color=green]
      > > they have the required characters? I could come up with a short list of
      > > probable font name candidates, but is there a better way?
      > >
      > > If there are any references to URLs which have discussed this, that[/color][/color]
      would be[color=blue][color=green]
      > > fine!
      > >
      > > Thanks,
      > >
      > > - Jim
      > >
      > >[/color]
      >[/color]


      Comment

      Working...