Font Activation and availableFonts
Font Activation and availableFonts
- Subject: Font Activation and availableFonts
- From: Ron Davis <email@hidden>
- Date: Wed, 22 May 2002 14:26:10 -0500
Seems Cocoa has problems with the deactivation of system fonts. If you use
the Font Manager call FMDeactivate to deactivate a font that is in the
system locations Cocoa seems to think the font is still there because it is
in a system location. You can see this in the font panel.
If you call [[NSFontManager sharedFontManager] availableFonts]; you get a
list of all the fonts in the fonts folders, not necessarily the fonts that
are actually active in the font server or available to draw. Does anyone
know if NSFontManager actually scans the directories?
It does notice when you activate and deactivate fonts that aren't in the
font directories.
Because of this you can get a app like TextEdit into a state where you can't
change fonts. If you deactivate a system font, it stays in the font panel,
but when you select it nothing changes. Switching between this not-really
available font and available ones causes you to get into a state where no
change of font happens.
Some console errors:
2002-05-22 10:22:39.561 TextEdit[697] Failed to set font ("CGS
BickleyScriptLetPlain 72.00 pt. P [] (0x01e87d30) fobj=0x01e984f0,
spc=0.00") ATSUStyle 0x159BE0
2002-05-22 10:22:39.563 TextEdit[697] Exception raised during background
layout: *** layout manager 173720 reentrant glyph generation problem.
2002-05-22 10:22:39.563 TextEdit[697] *** layout manager 173720 reentrant
glyph generation problem.
I'm filing a bug as I post this.
--
Ron Davis email@hidden
"I want to know God's thoughts...the rest are details." -- Albert Einstein
__________________________________________________________________________
"The difference between fiction and reality is that fiction has to make
sense." - Tom Clancy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.