Possible to include fonts in packing?

Issues related to Enigma Virtual Box
Post Reply
ghostyc
Posts: 3
Joined: Fri Sep 27, 2019 2:07 am

Possible to include fonts in packing?

Post by ghostyc »

I have successfully packed my application, which runs without any problem, apart from an option that requires a font.
Without installing the font, it looks like this.

Code: Select all

https://prnt.sc/pbihb5
I DO have the font file, tried to pack it in the same folder under the exe, or pack it in the %windir%\fonts, neither worked. I have even tried to add registry entries.

Code: Select all

https://prnt.sc/pbihow

Code: Select all

https://prnt.sc/pbihxn
If I install the FONT to the target machine, then it should look like this

Code: Select all

https://prnt.sc/pbii77

I wonder if there is a way to INCLUDE this font, so that I don't have to have a spererate app to load the font.

Current file can be obtained from

Code: Select all

https://casperyc.weebly.com/uploads/1/2/2/0/122062411/fx-85gt.exe
Thanks.
ghostyc
Posts: 3
Joined: Fri Sep 27, 2019 2:07 am

Re: Possible to include fonts in packing?

Post by ghostyc »

What I am also sure is that if I DO NOT install the font, but "provide" the registry with the path, it should also work.

Using a standard registry entry like,

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"ES03 Regular"= ES03.ttf     (or the correct path)

So I tried,

Image

But it's just not working ....

I tried:

Code: Select all

%DEFAULT FOLDER%\ES03.TTF
%WINDOWS FOLDER%\fonts\ES03.TTF
and lots of variation...
ghostyc
Posts: 3
Joined: Fri Sep 27, 2019 2:07 am

Re: Possible to include fonts in packing?

Post by ghostyc »

Anyone worked out a solution yet?
Ilya
Posts: 82
Joined: Tue Oct 07, 2014 2:31 am

Re: Possible to include fonts in packing?

Post by Ilya »

ghostyc wrote: Fri Sep 27, 2019 2:22 am What I am also sure is that if I DO NOT install the font, but "provide" the registry with the path, it should also work.

Using a standard registry entry like,

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"ES03 Regular"= ES03.ttf     (or the correct path)

So I tried,

Image

But it's just not working ....

I tried:

Code: Select all

%DEFAULT FOLDER%\ES03.TTF
%WINDOWS FOLDER%\fonts\ES03.TTF
and lots of variation...
Of course this will not work! Why did you make such an assumption? You should read documentation. This is your application design problem, this does not apply to the enigma vb.
You should use PrivateFontCollection class. This is correct way.
Post Reply