Staredit Network > Forums > SC2 Assistance > Topic: How to add custom fonts into a custom map
How to add custom fonts into a custom map
Oct 21 2011, 4:30 pm
By: xXdRaGoNrIdDeRXx  

Oct 21 2011, 4:30 pm xXdRaGoNrIdDeRXx Post #1



hello i am making a diablo 2 map and i would like to add the diablo 2 font i have the font i just would like to know how to get it into the game as in use it.



None.

Oct 21 2011, 9:44 pm Ahli Post #2

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

It's done with a sc2style file.
That's a xml file that contains font settings. Example code:

Code
<StyleFile>
    <Constant name="EXL" val="UI\Fonts\EXL.ttf"/>
    <Constant name="EXH" val="UI\Fonts\EXH.ttf"/>

    <Style name="DiabloHeader32" template="HeaderExtendedTemplate" height="32" textcolor="#ColorWhite" font="#EXH"/>
    <Style name="DiabloStandard32" template="StandardExtendedTemplate" height="32" textcolor="#ColorWhite" font="#EXL"/>
    <Style name="DiabloHeader24" template="HeaderExtendedTemplate" height="24" textcolor="#ColorWhite" font="#EXH"/>
    <Style name="DiabloStandard24" template="StandardExtendedTemplate" height="24" textcolor="#ColorWhite" font="#EXL"/>
    <Style name="DiabloHeader16" template="HeaderExtendedTemplate" height="16" textcolor="#ColorWhite" font="#EXH"/>
    <Style name="DiabloStandard16" template="StandardExtendedTemplate" height="16" textcolor="#ColorWhite" font="#EXL"/>
    <Style name="DiabloHeader12" template="HeaderExtendedTemplate" height="12" textcolor="#ColorWhite" font="#EXH"/>
    <Style name="DiabloStandard12" template="StandardExtendedTemplate" height="12" textcolor="#ColorWhite" font="#EXL"/>
    <Style name="DiabloHeader8" template="HeaderExtendedTemplate" height="8" textcolor="#ColorWhite" font="#EXH"/>
    <Style name="DiabloStandard8" template="StandardExtendedTemplate" height="8" textcolor="#ColorWhite" font="#EXL"/>
   
    <Style name="DiabloRight32" template="StandardExtendedTemplate" height="32" hjustify="Right" textcolor="#ColorWhite" font="#EXL"/>
    <Style name="DiabloRight24" template="StandardExtendedTemplate" height="24" hjustify="Right" textcolor="#ColorWhite" font="#EXL"/>
    <Style name="DiabloRight16" template="StandardExtendedTemplate" height="16" hjustify="Right" textcolor="#ColorWhite" font="#EXL"/>
    <Style name="DiabloRight12" template="StandardExtendedTemplate" height="12" hjustify="Right" textcolor="#ColorWhite" font="#EXL"/>
    <Style name="DiabloRight8" template="StandardExtendedTemplate" height="8" hjustify="Right" textcolor="#ColorWhite" font="#EXL"/>
    <Style name="DiabloRight32Bolt" template="StandardExtendedTemplate" height="32" hjustify="Right" textcolor="#ColorWhite" font="#EXH"/>
    <Style name="DiabloRight24Bolt" template="StandardExtendedTemplate" height="24" hjustify="Right" textcolor="#ColorWhite" font="#EXH"/>
    <Style name="DiabloRight16Bolt" template="StandardExtendedTemplate" height="16" hjustify="Right" textcolor="#ColorWhite" font="#EXH"/>
    <Style name="DiabloRight12Bolt" template="StandardExtendedTemplate" height="12" hjustify="Right" textcolor="#ColorWhite" font="#EXH"/>
    <Style name="DiabloRight8Bolt" template="StandardExtendedTemplate" height="8" hjustify="Right" textcolor="#ColorWhite" font="#EXH"/>

</StyleFile>


The file needs to be imported together with the font file and needs to be added in the game settings (or UI settings) in data editor.




Oct 21 2011, 10:07 pm xXdRaGoNrIdDeRXx Post #3



thanks ahli



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:01 pm]
NudeRaider -- Vrael
Vrael shouted: because you perfectly guessed SEN's root password and we cant have that displayed all over the shoutbox
given Moose's post I don't think he had to guess. ^^
[04:53 pm]
NudeRaider -- lil-Inferno
lil-Inferno shouted: Nude why'd you delete my shout
why not? :awesome:
[04:26 pm]
Vrael -- because you perfectly guessed SEN's root password and we cant have that displayed all over the shoutbox
[03:58 pm]
lil-Inferno -- sadjfjkasdhfijsadhmfcjhsdajkvfmjadslkfhjsdkahf
[03:58 pm]
lil-Inferno -- Nude why'd you delete my shout
[03:35 pm]
NudeRaider -- never trust a statistic you haven't forged yourself
[04:37 am]
Ultraviolet -- 80% of statistics are made up on the spot
[2026-6-08. : 8:05 pm]
Symmetry -- 50% of strings in starcraft are references
[2026-6-07. : 1:59 am]
RIVE -- Lots of fun little nods to different works of others in the cheats too.
[2026-6-06. : 5:17 pm]
Oh_Man -- so i was today years old wen i learned rebel yell starcraft mission is named after a billy idol song. makes me wonder wat other missions are named after songs
Please log in to shout.


Members Online: NudeRaider