473,503 Members | 1,685 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Does C# support OpenType fonts?

L
Hi there,

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

Thanks,
Lalasa.

Nov 16 '05 #1
4 11950
..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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4405
by: Nancy | last post by:
I recently completed a web page, "Browser Tests of Entities in 2004". http://www.santagata.us/characters/CharacterEntities.html It shows those characters that work in all of the version 5.2+...
0
1513
by: Stefan De Schepper | last post by:
Hi, How can I find out if a font is a truetype or opentype? (VB.Net or C#) Thanks in advance, Stefan.
1
1727
by: jusovsky | last post by:
Our font management tool, Suitcase, activates fonts dynamically by creating shortcuts in the Windows font folder. Using System.Drawing.Text.InstalledFontCollection to get the list of font families...
1
3635
by: PvdK | last post by:
Hello, Although a lot of postings in the past discuss the subject of A2000 and Unicode support, I couldn't find what I was looking for. My institute is compiling a dictionary of early middle...
0
955
by: Stu | last post by:
Hi, I have installed 2 OpenType fonts on the web server and am trying to list them in a drop down list using: Dim installed_fonts As New InstalledFontCollection For Each font_family As...
5
1573
by: Chris Sharman | last post by:
Anyone know a good, current reference ? I found Meyer's table (now moved to http://www.ddj.com/webreview/style/css1/charts/mastergrid.shtml ) and it's 5 years since the last update. Most other...
1
3245
by: Atul | last post by:
Hi, I have installed a truetype font (.ttf) on a linux machne (SUSE linux 10, KDE) by copying it to my .fonts folder. I can use the font in all applications like open-office and firefox browser....
5
2214
by: =?Utf-8?B?bGpsZXZlbmQy?= | last post by:
Is there any way to do the following: 1. Determine whether ClearType is enabled by the system (under Display Properties - Effects in WinXP). 2. Determine whether a font supports ClearType. ...
3
7718
by: Ellie | last post by:
This is the error that my vb.net 2.0 program is throwing. The debugger is saying it is coming from ntdll.dll. I'm not sure what this means since the program is running fine on 3 other machines. Any...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7330
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7460
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.