Topic: Registering Fonts  (Read 3062 times)

Registering Fonts
« on: January 30, 2020, 08:38:04 AM »

sharp

  • Jr. Chef
  • **
  • Date Registered: Jun 2019
  • Posts: 76
Hi,
Forgive me if this question asked before. I made a search on forum and google and found nothing.
How can I register my own fonts to XPE?
I can add fonts to Windows/Fonts folder. But I guess copying fonts isn't enough. I think the fonts must be registered.
There was a additional font script in PESE. Is there a similar script for XPE?
Regards
« Last Edit: January 30, 2020, 09:27:56 AM by sharp »

Re: Registering Fonts
« Reply #1 on: January 30, 2020, 12:29:49 PM »

Malok

  • Chef
  • ***
  • Location: Canada
  • Date Registered: Aug 2016
  • Posts: 202
I don't think there a script for XPE but you can register fonts with the following example.

Code: [Select]
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows NT\CurrentVersion\Fonts","Arial (TrueType)",arial.ttf
RegWrite,HKLM,0x1,"Tmp_Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Fonts","Arial (TrueType)",arial.ttf

You can easily make a script to copy the files to fonts folder and register them that way.

 

Re: Registering Fonts
« Reply #2 on: January 31, 2020, 08:04:53 AM »

sharp

  • Jr. Chef
  • **
  • Date Registered: Jun 2019
  • Posts: 76
Thanks Malok, the problem solved.

Re: Registering Fonts
« Reply #3 on: January 31, 2020, 12:38:12 PM »

Malok

  • Chef
  • ***
  • Location: Canada
  • Date Registered: Aug 2016
  • Posts: 202
 :great:

Re: Registering Fonts
« Reply #4 on: February 05, 2020, 12:48:29 PM »

Starla

  • Jr. Chef
  • **
  • Date Registered: Dec 2014
  • Posts: 13
Hi. Just as an addition to Malok info: if you also want to register the TTF font so it appears as an option in Command Prompt font selection list, use

Code: [Select]
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont",INDEX,"TTFDISPLAYNAME"

where INDEX can be any numeric string other than 0 or 00 (so i.e 000 and 001 would be valid), and TTFDISPLAYNAME would be "Arial" in Malok's example. However for consola.ttf it's "Consolas"

Important: *only* monospace TTF fonts will work here. A nice collection of suitable fonts for this purpose is The Ultimate Oldschool PC Font Pack. I like "PxPlus IBM VGA8" and "PxPlus IBM VGA9".

Finally, at least on Win7 x64, note that "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Fonts" key does not exist in the SOFTWARE hive from ISO, so the Wow6432Node mirroring command is not required in that case.
« Last Edit: February 05, 2020, 12:52:44 PM by Starla »

Re: Registering Fonts
« Reply #5 on: February 07, 2020, 04:56:49 PM »

Malok

  • Chef
  • ***
  • Location: Canada
  • Date Registered: Aug 2016
  • Posts: 202
Hi Starla,

You seem to have a good grasp on the subject  :smile: Would it be very difficult to create an "Additional Fonts" for XPE ?

Regards.

Re: Registering Fonts
« Reply #6 on: February 07, 2020, 05:20:51 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
If an App requires an Additional Font
Copy the Font to /windows/fonts
And register the Font via Registry

 

Powered by EzPortal