What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Skinning » Import font problem

Import font problem
Author: Message:
Jeeeee
Junior Member
**


Posts: 18
45 / Male / Flag
Joined: Jun 2009
O.P. Import font problem
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!
06-24-2009 01:35 AM
Profile E-Mail PM Find Quote Report
robert_dll
Full Member
***

Avatar

Posts: 393
Reputation: 8
– / Male / Flag
Joined: Aug 2008
RE: Import font problem
Any SkinTrace file?
06-24-2009 01:48 AM
Profile PM Web Find Quote Report
Jeeeee
Junior Member
**


Posts: 18
45 / Male / Flag
Joined: Jun 2009
O.P. RE: Import font problem
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
06-24-2009 02:09 AM
Profile E-Mail PM Find Quote Report
robert_dll
Full Member
***

Avatar

Posts: 393
Reputation: 8
– / Male / Flag
Joined: Aug 2008
RE: Import font problem
The trace is telling you that a { is missing in the third line of your  style 1002 file.
06-24-2009 02:18 AM
Profile PM Web Find Quote Report
Jeeeee
Junior Member
**


Posts: 18
45 / Male / Flag
Joined: Jun 2009
O.P. RE: Import font problem
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!
06-24-2009 02:24 AM
Profile E-Mail PM Find Quote Report
Jeeeee
Junior Member
**


Posts: 18
45 / Male / Flag
Joined: Jun 2009
O.P. RE: Import font problem
I don't get it but I re-imported the original and now it works... So 'ill re-do it from here thanks!
06-24-2009 02:28 AM
Profile E-Mail PM Find Quote Report
Willz
Senior Member
****

Avatar

Posts: 953
Reputation: 52
36 / Male / Flag
Joined: Jul 2006
RE: Import font problem
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.
06-24-2009 01:00 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On