Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (84,895 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

DK22Pac

[WIP/REL|SA]directFont by DK22Pac

Recommended Posts

DK22Pac

zs3c.png


directFont plugin replaces standart game fonts with new ones, based on fonts you have installed on your operating system.

Current features:
-Replaced all standart font kinds;
-File configuration;
-"UpperCaseAlways" option;
-Outline & shadow are available.

Other changes
-Wanted level now printed with '*' instead of ']'

Font tags
For this time, these tags are supported:
~n~ - makes new line;
~k~ - inserts control key;
~1~ - inserts number;
~r~ - red text color;
~g~ - green text color;
~b~ - blue text color;
~w~ - white text color;
~y~ - yellow text color;
~p~ - purple text color;
~s~ - default text color (white);
~h~ - highlighted text color;
~#XXXXXX~ - custom text color.

TODO
-Add support for color tags (~r~, ~g~, etc...);
-Add support special text tags (~s~, etc...);
-Add rotated text feature;
-Add advanced color tag (~#FFFFFFFF~);
-Make outlined fonts look better;
-Add option "ReplaceUnderscoreWithSpace" option;
-Update scripts text;
-Make wanted stars configurable;
-Possibly create III/VC/IV versions, must be easy to port it from SA.

Current stage
It is a beta version, configurated with most used fonts (arial, comic sans etc.).

Download
https://github.com/DK22Pac/directFont/releases Edited by DK22Pac

Share this post


Link to post
Share on other sites
Ivars

Good job.

Share this post


Link to post
Share on other sites
aStiffSausage

Crashes for me, tried both modified game and clean install. Fonts work as they should while in main menu, but when trying to load game, it crashes at about 80% through loading bar.

 

Here's content of DirectFont.txt if it helps you.

CNewFonts::Initialise()CNewFonts::Lost()CNewFonts::Reset()

And here's crashdump.

Share this post


Link to post
Share on other sites
lpgunit

So it's just like what Valve did with the GoldSrc/Source games where they used Truetype fonts for rendering the UI, yes?

Share this post


Link to post
Share on other sites
NTAuthority

>D3DX fonts

lol. have fun with your ugly GDI fonts rendered using a long-obsolete API that are not properly integrated into the game.

 

oh, also lovely license terms, not even allowing redistribution. thanks for reminding me to start on my own font renderer replacement using proper RW code, no obscure big dll file with worst C++ exports, global compatibility and using pregenerated fonts as .ttf files tend to be oddly licensed regarding redistribution, GDI looks ugly as sh-, DWrite is not available pre-Vista and FreeType is not something I'd want to distribute.

Share this post


Link to post
Share on other sites
DK22Pac

NTAuthority, can you please post screens where problems are shown?

Share this post


Link to post
Share on other sites
lpgunit

>D3DX fonts

lol. have fun with your ugly GDI fonts rendered using a long-obsolete API that are not properly integrated into the game.

 

oh, also lovely license terms, not even allowing redistribution. thanks for reminding me to start on my own font renderer replacement using proper RW code, no obscure big dll file with worst C++ exports, global compatibility and using pregenerated fonts as .ttf files tend to be oddly licensed regarding redistribution, GDI looks ugly as sh-, DWrite is not available pre-Vista and FreeType is not something I'd want to distribute.

 

That probably explains as to why the chat box and kill logs in SA-MP don't show up when you take a screenshot with Fraps, or at least as what I observed when I last played multiplayer some time ago.

Edited by lpgunit

Share this post


Link to post
Share on other sites
TJGM

Crashes when loading.. same issue as Stiffy.

Share this post


Link to post
Share on other sites
Gramps

What he said ^

Share this post


Link to post
Share on other sites
Kalvin

Will you be making this for VC and/or III? (without the crashing, of course :p)

Share this post


Link to post
Share on other sites
DK22Pac

Sorry for these problems, Ill updste it soon.

Share this post


Link to post
Share on other sites
cabron-jon

_DK Russian layout is supported?

Share this post


Link to post
Share on other sites
Asdf92

Crashed, I think the problem comes from your new Plugin.dll

Share this post


Link to post
Share on other sites
Ash_735

War Drum stole this. :p

 

San Andreas Mobile has the fonts packed as .ttf instead of the old texture way, so yeah, either they're looking or that was one hell of a coincidence.

Share this post


Link to post
Share on other sites
DK22Pac

Crashed, I think the problem comes from your new Plugin.dll

No, the problem comes with directFont itself.

 

_DK Russian layout is supported?

Yes. :)

2oqr.th.png

Updated first post, fixed version is available.

Please tell me if it works fine for you ;)

Edited by _DK

Share this post


Link to post
Share on other sites
TJGM

New version works. Looks nice with default settings.

 

9YLxRAe.png

Share this post


Link to post
Share on other sites
riquenunes

I tested it and here's my feedback:

 

- FONT1 replaces both Gothic style and subtitles font as well

- FONT2 actually replaces Pricedown instead of subtitles font

- FONT3 seems to be working fine

- FONT4 doesn't seem to replace anything at all

 

And by the way:

 

Someone should upload the fonts from iOS version of San Andreas so we can use with this mod. :p

Edited by riquenunes

Share this post


Link to post
Share on other sites
KeeJay

For what exe version is it? 1.0 US?

 

Also, it will be nice, if you add reading from SA root folder, not system fonts - by that way it could be more usable for total conversions and etc. Because not everybody have some custom font found in web.

Edited by KeeJay

Share this post


Link to post
Share on other sites
El Dorado

Here's all the font related files that I found on SA mobile

 

http://www.sendspace.com/file/2ajq42

 

I think Helvetica is used for subtitles.

Edited by format c:

Share this post


Link to post
Share on other sites
DK22Pac

 

riquenunes, thanks, fixed that.

Edited by _DK

Share this post


Link to post
Share on other sites
MasterHK

I have a qustion about plugin.dll:

Can it to be used by Opcodes 0AA2-0AA4 ?(load library and get proc address)

I was asked this question in vol-gta - post of IMFX but couldn't find an answer... :(

Share this post


Link to post
Share on other sites
fastman92

I have a qustion about plugin.dll:

Can it to be used by Opcodes 0AA2-0AA4 ?(load library and get proc address)

I was asked this question in vol-gta - post of IMFX but couldn't find an answer... :(

It can be used. You'll need to see the list of mangled names contained in DLL with some tool.

Share this post


Link to post
Share on other sites
MasterHK

oh... arresting...

Can u please name some of them?

 

ThankYou! :)

Edited by MasterHK

Share this post


Link to post
Share on other sites
OKOK PL

Nice job! :cookie:

 

gta_sa+2013-12-14+23-28-27-62.jpg


gta_sa+2013-12-14+23-28-38-16.jpggta_sa+2013-12-14+23-28-55-21.jpg

Share this post


Link to post
Share on other sites
Kalvin

Will you be making this for VC and/or III? (without the crashing, of course :p)

Didn't get an answer :p

Share this post


Link to post
Share on other sites
TJGM

 

Will you be making this for VC and/or III? (without the crashing, of course :p)

Didn't get an answer :p

 

 

TODO

-Possibly create III/VC/IV versions, must be easy to port it from SA.

Share this post


Link to post
Share on other sites
mikros1

I tested the mod here and it worked!

But how do I change the colors? Can anyone help me?

Share this post


Link to post
Share on other sites
R4gN0r0K

yeah please make it use its own font folder in the sa root

i have osx so it wont work because the font path is different

Share this post


Link to post
Share on other sites
Fortza

this mod make imfx lensflare,gunflashdoesn't work...
please fix this...

Share this post


Link to post
Share on other sites
TJGM

this mod make imfx lensflare,gunflashdoesn't work...

please fix this...

They work fine with it..

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.