473,796 Members | 2,483 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Lost Fonts - Fonts are installed but they couldn´t be instantiated

Hello everyone,

Did anyone know the problem that an installed font (Win2003 server) could
not be instantiated? The line of matter looks like this:

Font myFont = new Font("Monotype Corsiva", 16, FontStyle.Itali c);

It breaks with an ArgumentExcepti on "Cannot find font '?'" and the stack says:

Stack: at System.Drawing. FontFamily.get_ GenericSansSeri f()
at System.Drawing. Font.CreateFont FamilyWithFallb ack(String familyName)
at System.Drawing. Font.Initialize (String familyName, Single emSize,
FontStyle style, GraphicsUnit unit)
at System.Drawing. Font..ctor(Stri ng familyName, Single emSize, FontStyle
style)
....

Even if I am running a loop to get all FontFamilies this results in an array
with the length of zero (locally I can get all fonts by this way - and
instantiate the font as well).

May it be that there are security-reasons which block my request to
instantiate an existing font or could an update of microsoft be the reason?
Nov 23 '05 #1
0 944

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

Similar topics

8
3892
by: Randell D. | last post by:
I have just recompiled, upgraded to PHP 4.3.4. As an exercise (and curiosity) I've decided to test out PDF functions and got the test in the PHP online manual working. I had one problem whereby the example refered to Times New Roman - I didn't have this, but I did have Times-Roman which worked. My question - How do I know what fonts I *do* have available? I've run phpinfo() and gd_info() which I hope is enough to tell some wise person...
10
2807
by: minchu | last post by:
Hello, I have used CSS in HTML page (font-verdana size-8pt), looks fine in windows but in linux the fonts are corrupt and its too small. Kindly help me and tell what is the solution to correct this. www.teledna.com Regards, Minchu
3
1628
by: rt | last post by:
I hope this is the right news group to ask but if not I'm sure someone will correct me. I have a .NET application that uses 3 different 3 of 9 TrueType fonts. If I have a newly installed OS (2000 or XP) and print the document containing a barcode, the barcode is printed with the wrong font. We had a machine that did print correctly and so we started experimenting to see what produced the correct rendering when printed. It turns out that...
0
3399
by: LaidBack Bill | last post by:
My application allows the user to select fonts. I fill in a combo box control with the available fonts by looping through all System.Fonts: ' Get all the screen fonts ReDim sFontNameList(Screen.FontCount - 1) For i = 0 To Screen.FontCount - 1 sFontNameList(i) = Screen.Fonts(i) Next i
0
1057
by: Yuri Vanzine | last post by:
Don't really want to embed fonts, it adds to the download time, although this may be my only choice. I am also not sure how the browsers handle families of fonts. I am using Arial and Sans-Serif for ALL the languages and the client sees empty squares instead of a language font until they install a particular culture. Embedding a whole family of fonts does not sound like a fast download.
0
1065
by: Axel Schneider | last post by:
Hello everyone, Did anyone know the problem that an installed font (Win2003 server) could not be instantiated? The line of matter looks like this: Font myFont = new Font("Monotype Corsiva", 16, FontStyle.Italic); It breaks with an ArgumentException "Cannot find font '?'" and the stack says: Stack: at System.Drawing.FontFamily.get_GenericSansSerif()
8
6554
by: traditore | last post by:
Hello. I'm trying to load fonts in a web page using "style" tag. The TTF files are in other page whose URL is, for example, "http://myURL/fonts". The HTML code is something like: <html> <head> <style> @font-face {
70
15064
by: axlq | last post by:
I'm trying to design my style sheets such that my pages have similar-looking fonts different platforms (Linux, Mac, Adobe, X-Windows, MS Windows, etc). The problem is, a font on one platform might be the same as a font on another platform, but with different names. I'd like to be able to specify the font names that are "most equivalent." For example, "Lucida Console" is a very attractive and readable monospaced font available in...
2
4681
by: Gary | last post by:
1. I've installed a bunch of fonts in main application, which is in native C++ code using AddFontResourceEx 2. A C# application is launched from this main application, but failed to enumerate those installed fonts. My issue is that I don't want those fonts to be used outside of the main application so that I've set the font characteristics as FR_PRIVATE. However, I want the C# application be able to use those fonts. Although the C# app...
2
2973
tpgames
by: tpgames | last post by:
Two days ago, MS office Word would type JP fonts, I thought. I didn't think I was using Works. Now, it won't type in JP. Jasc Paint shop pro 8, should type JP fonts because I am using XP, according to Corel's website, and Jasc uses whatever is in the XP font folder. But, it won't. All the JP fonts types as English, even with JP selected in the Language Bar. I can't afford to upgrade to any better paint program. I do have a free JP word...
0
9680
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9528
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
10228
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...
0
10006
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
7547
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
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4116
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
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2925
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.