Search Archive

Quick Tutorial On Font Placement Please

By 69sixpackbee · Apr 02, 2009in Hacks/Mods💬 8 posts👁️ 917 views
Posted Apr 02, 2009 · 22:40 UTC#1

I got a brief explaination of the X, Y & Z coordinates from our resident know-it-all :) Boris about grid placement and "Z"'s with respect to how it works regarding object placement but I need to know when to/not to use "the "H".

Here are to lines of code regarding clock placement with respect my particular mod yet both of them are identical as far as position on the screen. One of them has the "W" and the other does not yet they did not change.

 

With the "H" in the code string:


 

And without the "H" :


 

Yet both yielded the same result.

Am I going nuts here??

 

Also, when does a "W" come into play when that is used as well??

 

Thanx,

Bud

Posted Apr 02, 2009 · 23:06 UTC#2
I got a brief explaination of the X, Y & Z coordinates from our resident know-it-all :) Boris about grid placement and "Z"'s with respect to how it works regarding object placement but I need to know when to/not to use "the "H".

Here are to lines of code regarding clock placement with respect my particular mod yet both of them are identical as far as position on the screen. One of them has the "W" and the other does not yet they did not change.

 

With the "H" in the code string:


 

And without the "H" :


 

Yet both yielded the same result.

Am I going nuts here??

 

Also, when does the "W" come into play??

 

Thanx,

Bud

can't find the W your talking about,

Posted Apr 02, 2009 · 23:08 UTC#3

the W value is for the width, lets say for example the current street name, if you set the width to 50 and the street name is so long it will shrink the width of the long street name just to 50

Posted Apr 02, 2009 · 23:42 UTC#4

Got it..but I have alot with the "H" as well. Does this have to do with the height of the fonts? Say, if I have a string of text that says "Rumplestiltskin" with a font of 50, then it will be spelled out --Rumplestiltskin-- with respect to the normal font of 50. Now if I put a contraint of w=175 then within a given area to be displayed it might be "rumplestiltskin" because it is wanting to display the word in 50 font still.

Now, if I add the H=110 to it it will still be the same with the cutoff letters but will still display if the constraints call for a more crowded viewing area??

Posted Apr 02, 2009 · 23:57 UTC#5
Got it..but I have alot with the "H" as well. Does this have to do with the height of the fonts? Say, if I have a string of text that says "Rumplestiltskin" with a font of 50, then it will be spelled out --Rumplestiltskin-- with respect to the normal font of 50. Now if I put a contraint of w=175 then within a given area to be displayed it might be "rumplestiltskin" because it is wanting to display the word in 50 font still.

Now, if I add the H=110 to it it will still be the same with the cutoff letters but will still display if the constraints call for a more crowded viewing area??

 

you got me confused there, i am not sure what the H does but for the W i'll try to explain it clearer see illustration below, 📎 sample 1.JPG📎 sample 2.JPG

Posted Apr 03, 2009 · 00:38 UTC#6

w= the width of your box

h= the height

 

Most times the h= doesn't come into play, because the height of the font is already decided when font size is selected

Posted Apr 03, 2009 · 03:02 UTC#7

Perfect!!

Thanx guys!!

 

...BUd

Posted Apr 03, 2009 · 16:38 UTC#8
Perfect!!

Thanx guys!!

 

...BUd

 

Also... For something like a BUTTON element, W defines the size of the button horizontally, and H vertically.

If щнг have a TEXT element, I believe without W it will expand as needed to fit the text you feed it, possibly covering up other display elements. If you specify W value, and text is too long, iGO will first squish the font, and then cut off the text adding ЭюююЭ to it.

 

For TEXT elements, H value has little meaning, although I suppose you could play with vertical alignment of the text within the area using valign parameter...