Font Component

  • Thread starter Thread starter Kerwin Cabrera
  • Start date Start date
K

Kerwin Cabrera

I created a component that has fonts in it. The files get copied properly
to the target C:\Windows\Fonts, but they are not accessible from the
applications. Is there anything else I have to do get them to install
properly?

Thanks,
KC
 
Kerwin,

Did you use font prototype for your component?
At runtime check [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts] reg.key to see if your font got registred properly.

KM
 
Yes, the prototype is set to "Font Prototype" but I don't see the entries in
the registry for the fonts.
KM said:
Kerwin,

Did you use font prototype for your component?
At runtime check [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
reg.key to see if your font got registred properly.

KM
I created a component that has fonts in it. The files get copied properly
to the target C:\Windows\Fonts, but they are not accessible from the
applications. Is there anything else I have to do get them to install
properly?

Thanks,
KC
 
I thought the registry key was also need. Take a look at the other TTF
components and see how the registry key is setup.

Regards,

Sean Liming (eMVP)
Managing Director
SJJ Embedded Micro Solutions

Author of
Windows XP Embedded Supplemental Toolkit Covering XPe SP2
Windows XP Embedded Advanced
Windows NT Embedded Step-by-Step

All available at www.sjjmicro.com

XPe Center website: www.seanliming.com

To learn more about Windows XP Embedded, come to MEDC 2005 in Las Vegas!
www.medc2005.com

Kerwin Cabrera said:
Yes, the prototype is set to "Font Prototype" but I don't see the entries
in the registry for the fonts.
KM said:
Kerwin,

Did you use font prototype for your component?
At runtime check [HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Fonts] reg.key to see if your font got registred
properly.

KM
I created a component that has fonts in it. The files get copied
properly to the target C:\Windows\Fonts, but they are not accessible from
the applications. Is there anything else I have to do get them to
install properly?

Thanks,
KC
 
I found that if I close my app and then run it again, the fonts appear in my
application. Could this be because I am running my app as the shell?

Sean Liming (eMVP) said:
I thought the registry key was also need. Take a look at the other TTF
components and see how the registry key is setup.

Regards,

Sean Liming (eMVP)
Managing Director
SJJ Embedded Micro Solutions

Author of
Windows XP Embedded Supplemental Toolkit Covering XPe SP2
Windows XP Embedded Advanced
Windows NT Embedded Step-by-Step

All available at www.sjjmicro.com

XPe Center website: www.seanliming.com

To learn more about Windows XP Embedded, come to MEDC 2005 in Las Vegas!
www.medc2005.com

Kerwin Cabrera said:
Yes, the prototype is set to "Font Prototype" but I don't see the entries
in the registry for the fonts.
KM said:
Kerwin,

Did you use font prototype for your component?
At runtime check [HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Fonts] reg.key to see if your font got registred
properly.

KM

I created a component that has fonts in it. The files get copied
properly to the target C:\Windows\Fonts, but they are not accessible
from the applications. Is there anything else I have to do get them to
install properly?

Thanks,
KC
 
Kerwin,
I found that if I close my app and then run it again, the fonts appear in my
application. Could this be because I am running my app as the shell?

This will unlikely happen if you properly registred font and you properly use (create) font within your application code.
Is that a .ttf or .fon font?

--
Regards,
KM, BSquare Corp.

Sean Liming (eMVP) said:
I thought the registry key was also need. Take a look at the other TTF
components and see how the registry key is setup.

Regards,

Sean Liming (eMVP)
Managing Director
SJJ Embedded Micro Solutions

Author of
Windows XP Embedded Supplemental Toolkit Covering XPe SP2
Windows XP Embedded Advanced
Windows NT Embedded Step-by-Step

All available at www.sjjmicro.com

XPe Center website: www.seanliming.com

To learn more about Windows XP Embedded, come to MEDC 2005 in Las Vegas!
www.medc2005.com

Kerwin Cabrera said:
Yes, the prototype is set to "Font Prototype" but I don't see the entries
in the registry for the fonts.
Kerwin,

Did you use font prototype for your component?
At runtime check [HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Fonts] reg.key to see if your font got registred
properly.

KM

I created a component that has fonts in it. The files get copied
properly to the target C:\Windows\Fonts, but they are not accessible
from the applications. Is there anything else I have to do get them to
install properly?

Thanks,
KC
 
There are actually 3 ttf's. How would I be able to do that in the code?

KM said:
Kerwin,
I found that if I close my app and then run it again, the fonts appear in
my
application. Could this be because I am running my app as the shell?

This will unlikely happen if you properly registred font and you properly
use (create) font within your application code.
Is that a .ttf or .fon font?

--
Regards,
KM, BSquare Corp.

Sean Liming (eMVP) said:
I thought the registry key was also need. Take a look at the other TTF
components and see how the registry key is setup.

Regards,

Sean Liming (eMVP)
Managing Director
SJJ Embedded Micro Solutions

Author of
Windows XP Embedded Supplemental Toolkit Covering XPe SP2
Windows XP Embedded Advanced
Windows NT Embedded Step-by-Step

All available at www.sjjmicro.com

XPe Center website: www.seanliming.com

To learn more about Windows XP Embedded, come to MEDC 2005 in Las
Vegas!
www.medc2005.com

Yes, the prototype is set to "Font Prototype" but I don't see the
entries
in the registry for the fonts.
Kerwin,

Did you use font prototype for your component?
At runtime check [HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Fonts] reg.key to see if your font got registred
properly.

KM

I created a component that has fonts in it. The files get copied
properly to the target C:\Windows\Fonts, but they are not accessible
from the applications. Is there anything else I have to do get them
to
install properly?

Thanks,
KC
 
Kerwin,
There are actually 3 ttf's.

Then you need to populate the registry entries.
How would I be able to do that in the code?

Use AddFontResource API.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_9r51.asp

KM
KM said:
Kerwin,
I found that if I close my app and then run it again, the fonts appear in my
application. Could this be because I am running my app as the shell?

This will unlikely happen if you properly registred font and you properly use (create) font within your application code.
Is that a .ttf or .fon font?

--
Regards,
KM, BSquare Corp.

I thought the registry key was also need. Take a look at the other TTF
components and see how the registry key is setup.

Regards,

Sean Liming (eMVP)
Managing Director
SJJ Embedded Micro Solutions

Author of
Windows XP Embedded Supplemental Toolkit Covering XPe SP2
Windows XP Embedded Advanced
Windows NT Embedded Step-by-Step

All available at www.sjjmicro.com

XPe Center website: www.seanliming.com

To learn more about Windows XP Embedded, come to MEDC 2005 in Las Vegas!
www.medc2005.com

Yes, the prototype is set to "Font Prototype" but I don't see the entries
in the registry for the fonts.
Kerwin,

Did you use font prototype for your component?
At runtime check [HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Fonts] reg.key to see if your font got registred
properly.

KM

I created a component that has fonts in it. The files get copied
properly to the target C:\Windows\Fonts, but they are not accessible
from the applications. Is there anything else I have to do get them to
install properly?

Thanks,
KC
 
Back
Top