By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,220 Members | 1,633 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,220 IT Pros & Developers. It's quick & easy.

Does C# support OpenType fonts?

P: n/a
L
Hi there,

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

Thanks,
Lalasa.

Nov 16 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
..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.

"L" <la********@investors.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Hi there,

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

Thanks,
Lalasa.

Nov 16 '05 #2

P: n/a
L
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.

Bob Powell [MVP] wrote:
.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.

"L" <la********@investors.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Hi there,

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

Thanks,
Lalasa.


Nov 16 '05 #3

P: n/a
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.

"L" <la********@investors.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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.

Bob Powell [MVP] wrote:
.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.

"L" <la********@investors.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
> Hi there,
>
> Does C# support OpenType fonts? My c# application is not
> recognizing OpenType fonts.
>
> Thanks,
> Lalasa.
>

Nov 16 '05 #4

P: n/a
L
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

Nov 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.