473,839 Members | 1,380 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Usage of Open Type Fonts with .Net

Hi,

I am working on a project that creates Banner images programmaticall y. 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 13888
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 misunderstandin g, 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 installedfontco llection.

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 misunderstandin g, 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
InstalledFontCo llection 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
InstalledFontCo llection. 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
InstalledFontCo llection 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 InstalledFontCo llection, 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 InstalledFontCo llection. 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 InstalledFontCo llection, 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 InstalledFontCo llection. 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, InstalledFontCo llection, 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, InstalledFontCo llection, 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
9158
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) If I specify a TrueType font (e.g. futura.ttf) I get an error message "Warning: imagettftext(): Could not find/open font in c:\filepath"
0
1324
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
11974
by: L | last post by:
Hi there, Does C# support OpenType fonts? My c# application is not recognizing OpenType fonts. Thanks, Lalasa.
1
1458
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
3594
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 that it is not a True-Type font, when clearly it is such. I've downloaded several other LED/LCD fonts and none of these work either (although they do in VB6). Any ideas?
15
409
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 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...
3
5414
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, interest NUMBER, year NUMBER,
3
4552
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 under port print ( As I wanted to have print fonts and not screen). I have installed the port freetype2 . Now what else I need to do to make it work ... any idea ????? -Ajd335
0
1266
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 = chr(34) & "CorrectiveID=" & MSODSC.CurrentSection.HTMLContainer.children("NCC_ID").value & chr(34) vLocation = vLocation & vServerfilter window.open(vLocation)
0
9698
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10911
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10589
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10654
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10298
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7833
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4494
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 we have to send another system
2
4066
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.