View Full Version : timer font
mikekantor
2nd November 2001, 19:45
I attempted to use a custom font for my new skin and it's not working... is this feature not yet implemented?
Naamloos
3rd November 2001, 06:48
A truetype font? or a bitmap font?
mikekantor
3rd November 2001, 07:23
true type font.
I'm interested in bitmap as well... I had an idea that would require a different set of bitmaps for each character in the timer, but I have no clue how to do that, so I'm trying to use just a plain .ttf file.
Naamloos
3rd November 2001, 07:44
<truetypefont id="myfontid" file="myfont.ttf" />
Use it like that, id = your font id your using
and the file..
Crusher_appa
3rd November 2001, 18:13
Okay might sound dumb but how do you change the color of the truetypefont?
Relatively new to XML.
mikekantor
3rd November 2001, 20:42
right, I used that font tag (with my font file), but the skin doesn't show the font I selected, instead I see some default one...
mikekantor
3rd November 2001, 20:44
color="255,0,0" would give you red text when you use it. The three numbers are RGB values.
simarilius
3rd November 2001, 20:50
<!-- Timer -->
<text
id="timer"
display="time"
x="75" y="74"
w="50" h="18"
font="chicago" fontsize="16" align="center" timecolonwidth="7"
/>
Is what I have in my skin at the mo, where chicago is a ttf installed in the windows\fonts dir.
seems to work fine
mikekantor
3rd November 2001, 21:00
huh... so you have it in the windows\fonts folder.
I'll try it, but what if I want to package a font with my skin?
And if this is how it works, then what's the point of:
<truetypefont id="myfontid" file="myfont.ttf" />
s0be
4th November 2001, 04:38
you can include the font file and refer to it as a relative path. I DON'T think that loading fonts from a zip file are working yet though. If you unzip the skin does the font work?
ALso, you can put FREE, PUBLIC DOMAIN fonts in your skin, but not the ones that come with windows, as those typesets(font is actually the word to refer to the size of the text, improperly used in society today) are copyrighted.
/*
S0Be
*/
mikekantor
4th November 2001, 04:58
well I'm fairly sure that my "typeset" is freeware... but I've only gotten it to work when it's installed with my other fonts, not with an unzipped wal file.
maybe in Beta 2?
s0be
4th November 2001, 05:04
I don't know. I used a free arial variant typeset in my skin and it didn't work in a .wal, worked fine when unzipped.
I guess you're right, this is probably just a beta bug. Either that or they're inventing their own font file format for us to convert our font files to(hint hint, use vector .ps style fonts) so as to make them more scalable.
/*
S0Be
*/
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.