Problems using custom fonts in Visual Studio 2008 under Server 2003

I have a problem with a custom font created by my company. When I set the Font property of a control in Visual Studio 2008 to our font, I get the following error:

Only TrueType fonts are supported. This is not a TrueType font.

The font selection dialog shows our font, and double-clicking on the font in the Windows font folder correctly displays the preview.

I've done some testing with other developers I work with. Obviously this problem only appears when running VS2008 under Server 2003, but the design time font works fine on Vista and XP. Other system fonts like Arial and Courier New work just fine, just not our own font.

Does anyone know why Server 2003 will have a font issue, presumably TrueType?

Update:

I was looking into additional differences between machines. Microsoft Office is not installed on the PC. After installing Office, this font worked in Visual Studio without any other modifications.

As an addition to the original question, why would installing Microsoft Office make the font start working?

0


source to share


2 answers


You really need to know more about your custom font. It looks like it might be an OpenType font that Server 2003 wouldn't know how to handle, while XP and Vista. OpenType fonts on Windows usually have a .ttf extension, so you can port it to a TrueType font at a glance, but the Windows font viewer should display it with a green and black "O" logo, at least on XP and Vista. If you want to really know what's in a font, use a font editor; for example, FontForge, which is large and free ( http://fontforge.sourceforge.net/ ), or the FontLab Studio demo ( http://www.fontlab.ch/ ).



As for why installing Office solved the problem, I'm guessing it added some DLL that deals with OpenType fonts, but again, it's really hard to tell without knowing more about the font.

+1


source


I have a similar but different problem. In this area we'll have XP, but no MS Office, and probably won't have the East Asia font pack installed (a separate search didn't tell me exactly what this option is). Our goal is to render Asian characters, so I was looking for a solution. I thought I would try a free Unicode font like http://en.wikipedia.org/wiki/GNU_Unifont

So, I was here because I was building a Windows Form application using VS2008 (using my Dev box, which is XP and also Office). It is TTF extension and in font folder renders fine and also works in WordPad.



In VS Designer, I select Unifont for my TextBox control, but VS indicates that the error message is not TrueType. So when is a TrueType font not TrueType?

0


source







All Articles