Does C# support OpenType fonts?

  • Thread starter Thread starter L
  • Start date Start date
L

L

Hi there,

Does C# support OpenType fonts? My c# application is not
recognizing OpenType fonts.

Thanks,
Lalasa.
 
..Net, and hence C# *only* supports open-type / true-type fonts.

Exactly where are you seeing the problems?

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Ok. I will start with my whole problem. I was migrating our MFC code
which generates some eps files to C#. The MFC applications were using
adobe fonts. GDI in C# doesnt support adobe fonts. So I converted the
adobe fonts to true-type fonts using FontLab. I am done all migrating
to C# and now as the last step, I had to use adobe indesign which puts
these eps files and some templates together to generate a pdf file.
Adobe indesign was showing little squares for the characters in the eps
file because it doesnt support true type fonts that are embedded inside
the eps files. In between after reading some stuff on adobe and
regarding Csharp, it looked like C# and Adobe Indesign agreed on
OpenType fonts. I wanted to test if OpenType fonts really work in C#.
So I downloaded an OpenType font into my windows/fonts directory and
tried doing new font(...) which is reverting to "Microsoft Sans Serif"
which means that the requested font cannot be found so the closest
match is being made. Next I wrote a quick application to loop through
the font families to get the list of fonts and this opentype font
doesnt show up. Am I missing something. Has somebody really seen
OpenType fonts work with C#.

Any help would be greatly appreciated.
Lalasa.
 
Hmmm, I think that converted fonts might cause a problem because all they do
is put an opentype "facade" onto an old adobe font.

Font specs are so open and broad that a font can work with half it's tables
missing. If FontLab doesn't provide all the correct font tables then the
GDI+ font reader won't understand it.

I have seen opentype fonts working but they weren't converted from type1
fonts or whatever.

Microsoft's typography section has a lot of info on this.

http://www.microsoft.com/typography/default.mspx

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Are there any free OpenType font download links you know of . I want to
download and test to check if both C# and Adobe inDesign will agree.
Thanks,
Lalasa
 
Back
Top