SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 10/05/2012, 10:14 PM   #1
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 4,038
Reputation: 835
Default Fonts with setobjectmaterialtext

Do other players need to download a specific font in-order to see a font that I downloaded and used?
__________________

66.85.149.2:7777 - An awesome CnR server consisting of doozy features! Come, we have players!



Looking to invest in unique projects under Irresistible Gaming! Contact if you have one Note, I don't use Skype for this.
Lorenc_ is offline   Reply With Quote
Old 11/05/2012, 11:55 AM   #2
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 5,449
Reputation: 766
Default Re: Fonts with setobjectmaterialtext

99% sure that's a yes.
__________________
>> Click here for ALL of my releases
mGates - Create AUTOMATIC gates with ONE FUNCTION (+ restrictions i.e. team members only)
IEE (Interior Enter/Exits) - Create enex markers with one function
Cuffs - Cuff offsets for ALL SKINS!
vfunc - Vehicle functions. GetVehicleColor and synced random colors.
gBug - Prevent the 'G' bug (players being able to enter moving vehicles by pressing G then running after them).
MP2 is online now   Reply With Quote
Old 11/05/2012, 01:06 PM   #3
Mandrakke
Big Clucker
 
Mandrakke's Avatar
 
Join Date: Apr 2010
Location: Brazil
Posts: 156
Reputation: 49
Default Re: Fonts with setobjectmaterialtext

of course yes, 100% sure.
__________________

- All my scripts are published under MIT-License. Use it, love it, hack it, sell it!
- You don't have to rep me if I helped you.

- SA-MP online objects viewer
- ShoutCast API (EN-US)
- In-Game file editor (PT-BR) (EN-US)
- In-Game ShoutCast radio station searcher (PT-BR)
Mandrakke is offline   Reply With Quote
Old 11/05/2012, 11:48 PM   #4
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 4,038
Reputation: 835
Default Re: Fonts with setobjectmaterialtext

Yeah, seems like they do. Just tested.
__________________

66.85.149.2:7777 - An awesome CnR server consisting of doozy features! Come, we have players!



Looking to invest in unique projects under Irresistible Gaming! Contact if you have one Note, I don't use Skype for this.
Lorenc_ is offline   Reply With Quote
Old 12/05/2012, 12:15 AM   #5
2KY
Gangsta
 
2KY's Avatar
 
Join Date: Jan 2012
Location: United States
Posts: 940
Reputation: 126
Default Re: Fonts with setobjectmaterialtext

Are there any that DON'T need to be downloaded? Just standard windows fonts?
__________________
"Teach how to think, not what to think."
2KY is offline   Reply With Quote
Old 12/05/2012, 12:33 AM   #6
Whitetiger
Huge Clucker
 
Whitetiger's Avatar
 
Join Date: Nov 2007
Posts: 286
Reputation: 51
Default Re: Fonts with setobjectmaterialtext

such a shame that multi-fonts couldn't have been added to SendClientMessage's or Textdraws, do all the windows fonts work?
Whitetiger is offline   Reply With Quote
Old 12/05/2012, 12:57 AM   #7
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 5,449
Reputation: 766
Default Re: Fonts with setobjectmaterialtext

Any font that is installed on the client's computer will work. You should stick to the standard ones.
__________________
>> Click here for ALL of my releases
mGates - Create AUTOMATIC gates with ONE FUNCTION (+ restrictions i.e. team members only)
IEE (Interior Enter/Exits) - Create enex markers with one function
Cuffs - Cuff offsets for ALL SKINS!
vfunc - Vehicle functions. GetVehicleColor and synced random colors.
gBug - Prevent the 'G' bug (players being able to enter moving vehicles by pressing G then running after them).
MP2 is online now   Reply With Quote
Old 14/05/2012, 11:19 AM   #8
Shadow_
Gangsta
 
Shadow_'s Avatar
 
Join Date: Nov 2008
Location: Vatican City
Posts: 528
Reputation: 37
Default Re: Fonts with setobjectmaterialtext

Quote:
Originally Posted by whitetigerswt View Post
such a shame that multi-fonts couldn't have been added to SendClientMessage's or Textdraws, do all the windows fonts work?
Truely is a shame that fonts wasn't added to SendClientMessage.
__________________
Shadow_ is offline   Reply With Quote
Old 14/05/2012, 12:48 PM   #9
Vince
Godfather
 
Vince's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 5,149
Reputation: 1472
Default Re: Fonts with setobjectmaterialtext

Something just came to mind. Went ingame to test it immediately.



Although I'm not sure if the game actually loaded that font (GTAWEAPON3) from the game directory (gtaweap3.ttf) or from the Windows directory. I did get a message once that stated: SignText: Can't create font GTAWEAPON3
__________________

Progress doesn't come from early risers — progress is made by lazy men looking for easier ways to do things.
Robert A. Heinlein
Vince is online now   Reply With Quote
Old 17/05/2012, 07:26 AM   #10
Patrik356b
Gangsta
 
Patrik356b's Avatar
 
Join Date: Mar 2008
Location: Sweden
Posts: 506
Reputation: 18
Default Re: Fonts with setobjectmaterialtext

A fallback technique like in websites would be nice for fonts, maybe defined like this:

pawn Code:
SetObjectMaterialText(objectid, text[], materialindex = 0, materialsize = OBJECT_MATERIAL_SIZE_256x128, fontface[] = "Pridedown\nArial\nTimes New Roman", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0);

\n would separate the font names in the example above
Patrik356b is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ISSUE] SetObjectMaterialText rendering problem NetKiel Scripting Help 2 30/04/2012 11:13 AM
SetObjectMaterialText problem or bug ? Eloctro Scripting Help 3 23/04/2012 09:46 PM
[BUG] SetObjectMaterialText NetKiel Scripting Help 7 22/04/2012 11:57 AM
SetObjectMaterialText Color embedding NetKiel Scripting Help 2 21/04/2012 10:33 PM


All times are GMT. The time now is 10:12 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.