Shoutbox

Import font problem - 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: Import font problem (/showthread.php?tid=91180)

Import font problem by Jeeeee on 06-24-2009 at 01:35 AM

Hello all,

   Ok I'm trying to modify the font used in my buddy list, and I can't seem to figure out what is my problem... Here is what I did.

SkinInfo.xml

code:
<SkinInfo xmlns="urn:msgplus:skins" Version="4">

    <Information>
        <Name>Test Skin</Name>
        <Description>Made by Jeeeee(For Messenger 2009 ONLY)</Description>
        <Version>1.0.0</Version>
        <BuildNumber>100</BuildNumber>
        <Screenshot>
            <File>thump.png</File>
        </Screenshot>
   
        <Compatibility>
            <MsgVersion Major="14" Minor="0"/>
        </Compatibility>
    </Information>
    <Fonts>
        <Font><File>fonts/Coconut-Medium.ttf</File></Font>
        <Font><File>fonts/Coconut-MediumOblique.ttf</File></Font>
        <Font><File>fonts/Coconut-BoldD.ttf</File></Font>
        <Font><File>fonts/Coconut-BoldOblique.ttf</File></Font>
        <Font><File>fonts/Exocet.TTF</File></Font>
    </Fonts>
   
    <Options>
        <Messenger>
            <ResetUserScene/>
          </Messenger>
        <Skin>
            <!-- User modifiable options -->
            <Properties>
                <!-- Font Selector -->
                <MultiVal Name="FontSel">
                    <DispLabel>Select the font to use on main windows</DispLabel>
                    <Values>
                        <Value DispLabel="Coconut-Medium">Coconut-Medium</Value>
                        <Value DispLabel="Coconut-MediumOblique">Coconut-MediumOblique</Value>
                        <Value DispLabel="Coconut-BoldD">Coconut-BoldD</Value>
                        <Value DispLabel="Coconut-BoldOblique">Coconut-BoldOblique</Value>
                        <Value DispLabel="NoFont">NoFont</Value>
                    </Values>
                    <Default>NoFont</Default>
                </MultiVal>
            </Properties>
        </Skin>
    </Options>

    <MessengerSkin>
        <ResGroup>
            <Restrictions>
                <MsgVersions>               
                    <Version Major="14" Minor="0"/>
                </MsgVersions>
            </Restrictions>
   
            <Resources>
                <Replace>
                    <Windows>
                        <Definitions>   
                            <Definition Id="1002"><File>ui/defs/1002.txt</File></Definition>
                        </Definitions>
                        <Styles>
                            <Style Id="1002"><File>ui/styles/1002.txt</File></Style>
                        </Styles>
                    </Windows>
                </Replace>
            </Resources>
        </ResGroup>
    </MessengerSkin>
</SkinInfo>


my 1002.txt
code:
<*PlusSkin FileKind(style) MsgVer(5) PlusVer(1) */>
    Element
    {
    <*PlusSkin Conditions(FontSel = "Coconut-Medium")*>fontface:"Coconut-Medium"; Fontsize:15pt; </*PlusSkin*>
    <*PlusSkin Conditions(FontSel = "NoFont")*> FontFace:rcstr("msgr",49614); FontSize:rcint("msgr",49615)pt; </*PlusSkin*>
    ContentAlign:middleleft;
    }


Right now with that code nothing changes the font stays the same!

Thank you!
RE: Import font problem by robert_dll on 06-24-2009 at 01:48 AM

Any SkinTrace file?


RE: Import font problem by Jeeeee on 06-24-2009 at 02:09 AM

Yep.

09/06/23 22:08:15| **** The trace has started ****
09/06/23 22:08:15| Skin: Palm Pre 1.0.0
09/06/23 22:08:15| Messenger version: 14.0.206.8064 (en-us)
09/06/23 22:08:15| Messenger Plus! version: 4.81.358
09/06/23 22:08:15| Last picture file loaded: 615
09/06/23 22:08:15| SkinLoader: couldn't encode data for window 1002
09/06/23 22:08:15| Opening { bracket cannot be found. Line (style): 3. Column: 1


RE: Import font problem by robert_dll on 06-24-2009 at 02:18 AM

The trace is telling you that a { is missing in the third line of your  style 1002 file.


RE: Import font problem by Jeeeee on 06-24-2009 at 02:24 AM

Yeah I saw that but I can't quite figure out were it goes since there is a { at line 3 already in my 1002 style file!


RE: Import font problem by Jeeeee on 06-24-2009 at 02:28 AM

I don't get it but I re-imported the original and now it works... So 'ill re-do it from here thanks!


RE: Import font problem by Willz on 06-24-2009 at 01:00 PM

There is a quick an easy way to replace all the fonts in messenger. This of course is only if you want the same font for every single part of Messenger.

The font messenger uses is actually defined by a bit of text you can replace so that every part of Messenger takes on the font you want.

For starters:

<Fonts>
        <Font><File>fonts/Coconut-Medium.ttf</File></Font>
        <Font><File>fonts/Coconut-MediumOblique.ttf</File></Font>
        <Font><File>fonts/Coconut-BoldD.ttf</File></Font>
        <Font><File>fonts/Coconut-BoldOblique.ttf</File></Font>
        <Font><File>fonts/Exocet.TTF</File></Font>
    </Fonts>

That code is fine, you leave that code in.

Then under the <Replace> section in SkinInfo.xml add this in:

<Strings>
   <String Id="20951">Coconut-Medium</String>
   <String Id="20952">Coconut-Medium</String>
   <String Id="20953">Coconut-Medium</String>
   <String Id="20954">Coconut-Medium</String>   
</Strings>

This will change every single font in the Messenger UI to coconut Medium. If you then want to apply a different font to a specific part of messenger you would use:

FontFace="Font Name Goes Here", under the definition file in the element you want to change.

This is a much cleaner way to replace fonts as you don't have to go into every single file and change the code and it is also very hard to make a mistake.