473,394 Members | 1,751 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Usage of Open Type Fonts with .Net

Hi,

I am working on a project that creates Banner images programmatically. I
have the application working but need to use the Hevetica Neue font but it
does not appear in the font list. My understanding is that .net supports True
and Open Type fonts. I just downloaded this font from Adobe and it is an Open
Type font. Can you tell me how I can use it?

I have to use the Helvetica font as it's a standard within my company. The
font is installed as it is available in Photoshop and other applications,
just not in the Installed font list collection..

Any help would be greatly appreciated..

Jason

Jul 21 '05 #1
9 13853
Hi Jason,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you're trying to use "Hevetica Neue"
downloaded from the Adobe site. If there is any misunderstanding, please
feel free to let me know.

As you said, the font was not appeared in the font list. Could you let me
know if you have installed it after downloading? If not, please install it
first.

1. Open Control Panel / Fonts.
2. Select Install New Font... from the File menu.

After installation, I think it will appear in the font list. HTH.

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

Jul 21 '05 #2
Kevin,

Yes I have already installed the font. The problem is that the font is an
"Open Type" font and while all the documentation I can find say .Net supports
Open Type fonts it does not appear too. I have located a True Type font from
LinoType which is available to me from the installedfontcollection.

My question was how can I use an Open Type font?

Thanks
Jason
"Kevin Yu [MSFT]" wrote:
Hi Jason,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you're trying to use "Hevetica Neue"
downloaded from the Adobe site. If there is any misunderstanding, please
feel free to let me know.

As you said, the font was not appeared in the font list. Could you let me
know if you have installed it after downloading? If not, please install it
first.

1. Open Control Panel / Fonts.
2. Select Install New Font... from the File menu.

After installation, I think it will appear in the font list. HTH.

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

Jul 21 '05 #3
Hi Jason,

Yes, as you know, .NET supports Open-Type fonts.

I downloaded an Open-Type font from the web and installed it on my machine.
It appears in the font list in Word. And I can see it using
InstalledFontCollection class. Also, I can use it directly using the
following code just as how we use True-type fonts:

Font f = new Font("Waking the Witch", 20.0f);

After installing Hevetica Neue font, can you see it in Word? If you could
tell me where to download it, maybe I can try it on my machine.

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

Jul 21 '05 #4
Kevin,

Helvetica Neue is a Licensed Font. You can purchase/download from adobe.
There are many versions of Helvetica Neue. The one I downloaded is located at
this URL..

http://store.adobe.com/type/browser/...-10043000.html

It is an Open Type font. It does appear in the font selection box if I were
developing a web page in VS...But it does not appear in the
InstalledFontCollection. Seems to be supported in part of the tool but not
all parts...

Any ideas why?

Thanks
Jason
"Kevin Yu [MSFT]" wrote:
Hi Jason,

Yes, as you know, .NET supports Open-Type fonts.

I downloaded an Open-Type font from the web and installed it on my machine.
It appears in the font list in Word. And I can see it using
InstalledFontCollection class. Also, I can use it directly using the
following code just as how we use True-type fonts:

Font f = new Font("Waking the Witch", 20.0f);

After installing Hevetica Neue font, can you see it in Word? If you could
tell me where to download it, maybe I can try it on my machine.

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

Jul 21 '05 #5
Hi Jason,

It seems I cannot download this font for free. Since you can use it, but
cannot see it in the InstalledFontCollection, will this be a license issue?

I suggest you try to download some other Open-Type fonts from the web and
install them to see if it appears in the InstalledFontCollection. If they
work fine, I suggest you try to contact Adobe to see if this is a license
issue.

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

Jul 21 '05 #6
Kevin,

I have downloaded other Helvetica fonts but those are True Type and they
work just fine. So, it would look like VS.Net does not support Open Type
fonts as advertised?? As the True Type fonts work and have the same licencing
issue I think we can rule out that being the problem.

While I can get the True Types to work my company only have the open type
font's included in the Corp License so my users will have to purchase the two
fonts. So, can someone tell me how to use the open type font's or tell me
they are not supported?

Thanks
Jason
"Kevin Yu [MSFT]" wrote:
Hi Jason,

It seems I cannot download this font for free. Since you can use it, but
cannot see it in the InstalledFontCollection, will this be a license issue?

I suggest you try to download some other Open-Type fonts from the web and
install them to see if it appears in the InstalledFontCollection. If they
work fine, I suggest you try to contact Adobe to see if this is a license
issue.

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

Jul 21 '05 #7
Hi Jason,

I apologize that I might have delivered some inaccurate information in my
last post. With my further research, I found the following limitation in
current version of .NET framework.

When using Font, InstalledFontCollection, FontDialog and SystemFonts, the
following font formats are not allowed, even though the operating system
fully supports them:

- Device-specific/printer fonts
- Raster/bitmap fonts
- OpenType (erratic; Microsoft's fonts are allowed, Adobe's fonts are not
allowed)*
- Type 1

This is because of GDI+, which only supports minimal TrueType. Currently,
there is no work-around possible, as everything inside System.Windows.Forms
requires the use of Font-objects. P/Invoke is therefore not an option.

Based on the above information, I'm afraid we cannot use this font in .NET
windows form application. Sorry for the inconvenience. If anything is
unclear, please feel free to reply to this post.

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

Jul 21 '05 #8
Thanks Kevin,

I figured it would be something like that..Thanks for confirming...

Jason
"Kevin Yu [MSFT]" wrote:
Hi Jason,

I apologize that I might have delivered some inaccurate information in my
last post. With my further research, I found the following limitation in
current version of .NET framework.

When using Font, InstalledFontCollection, FontDialog and SystemFonts, the
following font formats are not allowed, even though the operating system
fully supports them:

- Device-specific/printer fonts
- Raster/bitmap fonts
- OpenType (erratic; Microsoft's fonts are allowed, Adobe's fonts are not
allowed)*
- Type 1

This is because of GDI+, which only supports minimal TrueType. Currently,
there is no work-around possible, as everything inside System.Windows.Forms
requires the use of Font-objects. P/Invoke is therefore not an option.

Based on the above information, I'm afraid we cannot use this font in .NET
windows form application. Sorry for the inconvenience. If anything is
unclear, please feel free to reply to this post.

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

Jul 21 '05 #9
You're welcome, Jason.

Thanks for your understanding!

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

Jul 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: bof | last post by:
I'm attempting to use ImageTTFText to render text to an image, I can get it to work if I a) specify the full font path b) switch off anti-aliasing c) specify an OpenType font (e.g. arial.ttf) ...
0
by: John | last post by:
I just installed an Adobe open type font. It is available in other Office programs (e.g., Excel and Word), but it's not available in Access. Anyone have any ideas why it's not available in Access?
4
by: L | last post by:
Hi there, Does C# support OpenType fonts? My c# application is not recognizing OpenType fonts. Thanks, Lalasa.
1
by: Roger | last post by:
Hi, I'm trying to populate a dropdownlist with all the available True-Type Fonts on the webserver. Anyone know how to do this?
2
by: Jeff Law | last post by:
I'm having considerable difficulty getting a LED/LCD style font to work in VB.Net (on a Button). The font that I want to use (a Corel-sourced one) will work in VB6, but not in VB.Net. It says...
15
by: Jason | last post by:
Hi, I am working on a project that creates Banner images programmatically. I have the application working but need to use the Hevetica Neue font but it does not appear in the font list. My...
3
by: Neena Paul | last post by:
Hi, I ve a below structured object TYPE in Oracle to calculate the Simple and Compound interest for an amount.. CREATE TYPE pnr_typ AS OBJECT ( principle NUMBER, ...
3
by: ajd335 | last post by:
Hi all, I wanted to install TT fonts that works with PHP. I come across with X11. But, I don't wanted to use X11. Instead, wanted to have some easy way to do so...I found one port called Freetype2...
0
by: munkee | last post by:
Hi again, I am using the following code to open up a new window within my data access page: Dim vServerfilter Dim vLocation vLocation = "CorrectiveAction.htm?serverfilter=" vServerfilter =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...

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.