Shoutbox

[Help] Fonts element - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Skinning (/forumdisplay.php?fid=41)
+----- Thread: [Help] Fonts element (/showthread.php?tid=82556)

[Help] Fonts element by -LiNk- on 03-22-2008 at 04:54 PM

I'm trying to use a specific font for my skin, but I can't understand what's the right code :S.

I tried

   

quote:
<Fonts>
    <Font>Contb.ttf</Font>
    </Fonts>

   or

   
quote:
<Fonts>
    <Font>
    <File>Contb.ttf</File>
    </Font>
    </Fonts>

but it doesn't work, the font doesn't change!

Can anyone help me?
RE: [Help] Fonts element by blessedguy on 03-23-2008 at 03:18 PM

it is under SkinInfo tag only?! (at least the Schema says that it would be like

code:
<SkinInfo>
...
<Fonts>
<Font>
<File>....ttf</File>
</Font>
</SkinInfo>

I'm not sure if it is  <Font><File>....ttf</File></Font>, or <Font>....ttf</Font>, try both, but check if the only tag above it is SkinInfo!
RE: [Help] Fonts element by -LiNk- on 03-23-2008 at 03:48 PM

quote:
it is under SkinInfo tag only?!

Yes, it is. This is the code:

quote:
<SkinInfo>
    <Information>
        <Name>Wii Live Messenger BETA</Name>
        <Description>Simple skin based on the Nintendo console visual style.</Description>
        <AboutUrl>http://ugosan.spaces.live.com</AboutUrl>
        <Version>0.0.0</Version>
    <Compatibility>
    <MsgVersion Major="8" Minor="5" />
           </Compatibility>
        <Screenshot>
            <File>screenshot.png</File>
        </Screenshot>
    </Information>

    <Fonts>
    <Font><File>1.ttf</File></Font>
    </Fonts>

.....

</SkinInfo>

But it doesn't work! :S
RE: [Help] Fonts element by blessedguy on 03-23-2008 at 03:53 PM

try adding the version to skin info (only version 2 supports fonts!)

<SkinInfo Version="2">


RE: RE: [Help] Fonts element by -LiNk- on 03-23-2008 at 04:06 PM

quote:
Originally posted by blessedguy
try adding the version to skin info (only version 2 supports fonts!)

<SkinInfo Version="2">

I tried, but it still doesn't work! :S


Thanks, anyway... :)
RE: [Help] Fonts element by blessedguy on 03-23-2008 at 04:13 PM

ok...so i don't know what to do...


RE: [Help] Fonts element by aNILEator on 06-26-2008 at 12:33 AM

Yeah I can't get this to work either... Patchou to the rescue?


RE: [Help] Fonts element by Nagamasa on 06-26-2008 at 03:47 AM

quote:
Originally posted by aNILEator
Yeah I can't get this to work either... Patchou to the rescue?
I've gotten it to work. :)

Although I have to go sleep :P I'll edit/post again when I have time! (lol sorry really busy for the last few days in Canada)
RE: [Help] Fonts element by blessedguy on 06-26-2008 at 04:46 PM

quote:
Originally posted by Nagamasa
quote:
Originally posted by aNILEator
Yeah I can't get this to work either... Patchou to the rescue?
I've gotten it to work. :)

Although I have to go sleep :P I'll edit/post again when I have time! (lol sorry really busy for the last few days in Canada)
Waiting! (pretty curious)

(And, yay, I'm back! =) School is over until July 27th)
RE: [Help] Fonts element by aNILEator on 07-01-2008 at 10:51 AM

explanation instructions yet naga?


RE: [Help] Fonts element by Nagamasa on 07-01-2008 at 09:53 PM

I've gotten working (I deleted the code for it :P) again, and I'm writing up the instructions right now...(its like 5 in the morning here :S)

[Image: capture1dx3.jpg]

Gimme like day and I should be done with the instructions (A).


RE: [Help] Fonts element by aNILEator on 07-01-2008 at 09:59 PM

thanks naga, hope it works for my ttf


RE: [Help] Fonts element by ZOiD on 07-02-2008 at 02:48 AM

Hello!

Which is the difference between the skininfo 1 and skininfo2? Or rather since(as,like) do they work each one?

For that you say that the sources(fountains) are alone supported by the version 2?
All the versions is it?

I will be dependent on how you achieved it!!! For the sources(fountains)!!!

Sayo!!!


RE: [Help] Fonts element by LuckyMe on 07-02-2008 at 03:28 AM

That looks great nagamasa, good work, iīll be waiting for your instructions too ;)


RE: [Help] Fonts element by Nagamasa on 07-03-2008 at 11:30 AM

First you add what -LiNk- has into SkinInfo. It should be equally aligned with <Information> and <Option> tabs.

Then, open your font, and remember the name of the font itself (not the file name).

Next (I know this works with 947 Style, and should work with other Style files), search up fontface, and replace each

code:
fontface:rcstr(20071);
with
code:
fontface:"The Exact Font Name";
. That should cover most of the text. If not, then add them in individually.

An optional step, is of course, give me some positive rep (A).

If you have any problems, post them here, and I can help (or someone that did get it to work can).
RE: RE: [Help] Fonts element by LuckyMe on 07-04-2008 at 12:08 AM

Yay it works! (at least with 947 style as Nagamasa says, i havenīt tested with another),  here is what i did (if itīs useful for someone):

Skininfo:

quote:
    </Information>
    <Fonts>
        <Font>
            <File>Fonts/Armor Piercing 2.0 BB.ttf</File>
        </Font>
    </Fonts>


But I had to replace every fontface element over the style.

it rocks!, if i was able to give you some good rep :(
Anyway, thanks for the information :P
RE: RE: RE: [Help] Fonts element by TheSteve on 07-04-2008 at 01:03 AM

quote:
Originally posted by LuckyMe
But I had to replace every fontface element over the style.

If you put the font face in the element{ }  section, every other element that uses the style sheet that doesn't specify its own font, should inherit that font.

Edit (an example would probably be good):
code:
element
{
    FontFace: "Times New Roman";
}

RE: [Help] Fonts element by aNILEator on 07-04-2008 at 11:12 AM

quote:
Originally posted by TheSteve
quote:
Originally posted by LuckyMe
But I had to replace every fontface element over the style.

If you put the font face in the element{ }  section, every other element that uses the style sheet that doesn't specify its own font, should inherit that font.

Edit (an example would probably be good):
code:
element
{
    FontFace: "Times New Roman";
}



Yup it does, but still got to replace the string number stuff for the others elements/buttons etc anyway.

Got mine working :D Yes it works in all windows; except the Forward and Options links in Toasts :( (tried lots of different combinations, wouldn't work)

--------------------------------------------------

[Image: attachment.php?pid=916019]
RE: [Help] Fonts element by Basilis on 07-04-2008 at 12:22 PM

Great job Nagamasa! :)


RE: [Help] Fonts element by aNILEator on 07-04-2008 at 12:36 PM

I'll write up a tutorial over the week and contact mynetx to put it on the resources page site as well as on here.

for now to fully replace a font throughout a skin quickly download notepad++ (or any text editor that can replace text in multiple files at once)

After setting up the skininfo with

<Fonts>
       <Font>tnroman.ttf</Font>
</Fonts>

Make sure you know the full name of the font e.g Times New Roman

Open all the styles files for the skin.

Then press Ctrl+H and fill in as such:

Find What:     [fontface:rcstr                                   ]
Replace With: [fontface:"Times New Roman";//   ]

That will replace the font and comment out whatever it was originally :D leaving in the little triangles everywhere for cursors (because that is fontface:"Marlett"; ;))

I just updated Vistafy to have Segoe UI mmmm :)


RE: [Help] Fonts element by Nagamasa on 07-04-2008 at 04:05 PM

lol Nile lets wait and see if we can release all these font-changed skins on the same day :P

Yeah if my post was unclear, sorry! I'm really bad at explaining.


RE: RE: [Help] Fonts element by LuckyMe on 07-04-2008 at 06:51 PM

quote:
Originally posted by aNILEator


Yup it does, but still got to replace the string number stuff for the others elements/buttons etc anyway.

Got mine working :D Yes it works in all windows; except the Forward and Options links in Toasts :( (tried lots of different combinations, wouldn't work)



Wow, your skin looks great with the new font :P

Just another question, is it possible to use the fonts in the option panel? and specificly in a combobox?

I made an option to change the default font for another but iīd like to show a preview for specified fonts, so it would be easy to do it if the text in the combobox uses the respective font, something tells me thatīs not possible :^)

Thanks!
RE: [Help] Fonts element by Nagamasa on 07-04-2008 at 10:26 PM

You can always just make that piece of text an image.


RE: RE: [Help] Fonts element by LuckyMe on 07-05-2008 at 03:32 AM

quote:
Originally posted by Nagamasa
You can always just make that piece of text an image.

Yes youīre right, so this is what i mean, here is the combobox as it actully looks:

[Image: 104op4w.png]

And here is what i am trying to do (before you ask... yeah it is photoshopy ;)):

[Image: 2kegsp.png]

as you see the proper fonts are used to show a "preview" of themselves, I donīt know if it is possible, i was looking at MPL interface schema but I donīt understand how to put images inside the control, any help would come handy, thanks in advance
RE: [Help] Fonts element by aNILEator on 07-05-2008 at 07:03 AM

You could have it affect a preview box to the right of the dropdown?


RE: RE: [Help] Fonts element by LuckyMe on 07-05-2008 at 06:04 PM

quote:
Originally posted by aNILEator
You could have it affect a preview box to the right of the dropdown?

Yes I want something that shows a preview of the font, but also i want to know if is possible to put images inside the dropdown box, sorry I know iīm being annoying with this :$