Skip to main content

Microsoft Silverlight

Answered Question How to display glyphs from propietary font? RSS Feed

(0)

siegfried_heintze
siegfrie...

Member

Member

5 points

19 Posts

How to display glyphs from propietary font?

This is a deliberate cross post because I am experiencing the same problem in HTML as I am in Silverlight and I figure it would not be appropriate to ask for a HTML solution here.
 
My client gave me some propietary fonts. I can see the desired glyphs in them using charmap.exe.
 
I would like to display these glyphs in a private web page.
 
This works: <tr style="font-family:Times New Roman"><td>Times New Roman</td>
This does not:
        <tr style="font-family:Segeo Wedge Keycaps"><td>Segeo Wedge Keycaps</td><td>&#57344;</td>
Well, actually "Segeo Wedge Keycaps" displays but the second column displays as a rectangle, not the special glyph I was hoping for.
 
In XAML, this does not work either:
<TextBlock FontSize="10" FontFamily="Segeo Wedge Keycaps" Canvas.Top="0" Canvas.Left="0">&#57345;&#57346;&#57347;&#57348;&#57349;&#57350;&#57351;&#57352;&#57353;</TextBlock>
 
I can use charmap.exe to paste these characters into a word document however, and they display correctly there!
 
Can someone tell me what I am doing wrong?
Thanks!
Siegfried

Alexander Nikitin
Alexande...

Member

Member

164 points

37 Posts

Re: How to display glyphs from propietary font?

At first, these fonts should be available on client's machine.

Some time ago, browsers (especially IE6) allowed to download fonts from web pages by default, but now none of them will allow you to do so (because of security implications).

Maybe Silverlight is able to load fonts from .XAP, but the documentation is unclear on this.

The simplest solution (which is also commonly used in game development) is to rasterize those glyphs. It can become an issue if you want your web pages to be accessible, though.

Flash has an option to import fonts inside the SWF as vector glyphs in this case.

So, this is not a solution, but I hope this made the problem clearer to you :)

-- / Please mark my posts as answers, if they're helpful, and unmark, if they don't /

siegfried_heintze
siegfrie...

Member

Member

5 points

19 Posts

Answered Question

Re: How to display glyphs from propietary font?

Ooops -- sorry to spam everyone! Problem solved: I was misspelling the font name! Argh!

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities