Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (TedMar, AndrewAMD, fairtrader), 578 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 4
AddFontResource() #151715
09/02/07 15:27
09/02/07 15:27
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
This is about True Type Fonts again.

Well, you actually stated that you don't want to let GS install the font permanently in the windows folder (this can already be achieved with an installer tool like InnoSetup), but maybe I can offer you another tiny, elegant and super-fast-to-implement solution

I tried to day writing a DLL which tries to add a truetype font temporarily with AddFontResource to the system font table (click here for the related MSDN article). This works very well for other programs, but it doesn't work somehow with acknex. I don't know what you are doing in the engine but maybe you could investigate that in your spare time to add such a feature into the engine which loads a fontfile (*.ttf) temporarily (even from WRS!, that is important) so that we can use it in the game without installing it.

This is maybe the smallest and easiest solution to provide such a feature and many user will agree with my oppinion. Please do it ... we don't want to beg here.

Last edited by HeelX; 09/02/07 15:29.
Re: AddFontResource() [Re: HeelX] #151716
09/03/07 13:16
09/03/07 13:16
Joined: Nov 2000
Posts: 1,534
hamburg
Samb Offline
Serious User
Samb  Offline
Serious User

Joined: Nov 2000
Posts: 1,534
hamburg
that would be awesome!
more awesome than soft shadows or something else.

Re: AddFontResource() [Re: Samb] #151717
09/04/07 08:51
09/04/07 08:51
Joined: Jul 2000
Posts: 27,967
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,967
Frankfurt
I don't think that the Windows API already supports WRS files. Maybe you could suggest it to Bill for future AddFontResource updates.

I am not sure if AddFontResource works for DirectX fonts, but I suppose it should. You only need to take care that you call AddFontResource() before creating the font with font_create().

Re: AddFontResource() [Re: jcl] #151718
09/04/07 09:12
09/04/07 09:12
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Quote:

I don't think that the Windows API already supports WRS files.




That was a whole suggestion for you and the engine.

Re: AddFontResource() [Re: HeelX] #151719
09/04/07 09:34
09/04/07 09:34
Joined: Jul 2000
Posts: 27,967
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,967
Frankfurt
The engine and I thank for the suggestion to reprogram the Windows API and add WRS support to the Windows file system. Maybe we'll consider that when we're retired.


Moderated by  aztec, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1