PRB: Embedded Read-Only Fonts in Multiple Application Instances on Windows 9x (230210)
The information in this article applies to:
- Microsoft Windows 95
- Microsoft Windows 98
This article was previously published under Q230210 SYMPTOMS
Microsoft Windows Operating Systems provide a feature called Embedded Read-Only fonts that an application can use to temporarily install a TrueType font such that only the application can access and use the font.
The behavior of this feature on Windows 95 and Windows 98 may be unexpected. The second and any subsequent instance of the application fails to install the font resource when it is created "hidden." This behavior is designed to protect the Embedded Read-Only font from misuse by other processes.
CAUSE
The AddFontResource() function fails to install a hidden font resource file created by the CreateScalableFontResource() function when the font resource file is already in use.
Multiple processes can not use the same hidden font resource at the same time.
RESOLUTION
Each instance of an application can use a TrueType font file via a hidden font resource created by the CreateScalableFontResource() function by creating unique copies of the TrueType font file.
To make a TrueType font file unique, the application instance must change the name of the font in the TrueType font file and recalculate the checksum. The resulting TrueType font file is considered to be unique by the operating system but provides the same glyphs because the definition of the font has not changed.
However, each instance of the application needs to use the new font face name in the LOGFONT structure that was given to the font when it was modified to make it unique.
Alternatively, the application can install the font without using the hidden font resource option. This allows all processes in the system to use the font.
STATUS
This behavior is by design.
This design prevents other processes in the system from using private fonts that a process has installed as hidden to presumably protect the font from unlicensed use outside of the application.
REFERENCES
For additional information about this issue on Windows NT, please see the following article in the Microsoft Knowledge Base:
230179 PRB: Embedded Read Only Fonts in Multiple Application Instances on Windows NT
For additional information on the OpenType (TrueType) specification, please see the
OpenType Specification on Microsoft's website.
Or, see the
OpenType Specification on Adobe's website.
For additional information about calculating TrueType font file checksums, please see the following article in the Microsoft Knowledge Base:
102354 Calculating the TrueType Checksum
Modification Type: | Minor | Last Reviewed: | 5/17/2006 |
---|
Keywords: | kbDSWGDI2003Swept kbFont kbGDI kbprb KB230210 |
---|
|