It is currently May 6th, 2024, 11:53 pm

[Solved] LocalFonts broken

Get help with creating, editing & fixing problems with skins
moshee
Posts: 2
Joined: November 26th, 2010, 4:18 am

[Solved] LocalFonts broken

Post by moshee »

I was working on a skin and refreshed it to see my changes when suddenly the font I was using changed to Arial. I was using LocalFont specified in a .inc file as such:

Code: Select all

LocalFont=MuseoSans-100.ttf
LocalFont2=MuseoSans-300.ttf
LocalFont3=MuseoSans-500.ttf
It had been working up to this point, but after I opened one of them (the 300-weight) in FontCreator and re-saved it, all three weights of the font stopped working. The fonts are at http://www.mediafire.com/?2d7hkwzhkvqhxxb and the skin is as follows:

Code: Select all

[Rainmeter]
Author=moshee
AppVersion=1001000
Update=1000
MiddleMouseDownAction=!RainmeterRefresh #CURRENTCONFIG#

[Metadata]
Name=Digital Clock
Config=moshee | Sidebar | Clock
Description=Slanted digital clock
Version=9001
Tags=Time | Digital | Clock
License=None
Variant=1

[Variables]
@include=#SKINSPATH#moshee\UserVariables.inc

; ------------------------------------------------------------------------------------------------
; MEASURES

[MeasureHour]
Measure=Time
Format=%H

[MeasureMinute]
Measure=Time
Format=%M

[MeasureSecond]
Measure=Time
Format=%S

[MeasureWeek]
Measure=Time
Format="%A"

[MeasureDay]
Measure=Time
Format=%d
[MeasureMonth]
Measure=Time
Format=%b
[MeasureYear]
Measure=Time
Format=%Y

[Style]
FontSize=30
FontFace=Museo Sans 100
AntiAlias=1
FontColor=0,0,0,200
TransformationMatrix=1;0.085;0;1;0;0

[Style1]
FontFace=Museo Sans 500
FontColor=255,255,255,255
AntiAlias=1
FontSize=36
TransformationMatrix=1;0.085;0;1;0;0

[background]
Meter=IMAGE
X=0
Y=0
H=120

[Week]
Meter=STRING
MeasureName=MeasureWeek
MeterStyle=Style
X=220
Y=0
FontSize=30
StringAlign=RIGHT
Text="%1,"
FontColor=0,0,0,140
[Date]
Meter=STRING
MeterStyle=Style
MeasureName=MeasureDay
MeasureName2=MeasureMonth
MeasureName3=MeasureYear
X=-10r
Y=r
Text="%1 %2 %3"

[Time]
Meter=STRING
MeasureName=MeasureSecond
MeasureName2=MeasureMinute
MeasureName3=MeasureHour
MeterStyle=Style1
X=240
Y=36r
Text="%3:%2:%1"
StringAlign=LEFT
Any help with this problem would be greatly appreciated.

(I realize it's kinda messy but optimizing is not my main concern right now)
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: LocalFonts broken

Post by dragonmage »

Have you tried uninstalling your modified font and reinstalling the original version? I would have to guess that there was some problem with the re-saving with Font Creator.
moshee
Posts: 2
Joined: November 26th, 2010, 4:18 am

Re: LocalFonts broken

Post by moshee »

The problem is fixed now - turns out I just had to move the LocalFont declaration from [Variables] to a [Rainmeter] section in my .inc file. Derp!