jemmicat;563437 Wrote:
> Yes... I am making an Art-Deco radio design that utilizes a computer and
> touch screen and I want the font to kind of match the font I used in
> designing up the logo which I am molding in plastic. I can find the
> Freesans in both the skin lua and the font.lua but I can only change it
> between freesans, freemono and the other one included. I have downloaded
> other ttf files and tried even windows versions and when I do this, it
> defaults to some other font and the font I want to use. I've copied the
> fonts into the squeezeplay installed font folder and everything seems
> like it should work. But it doesn't. I've shown what I did commented
> out and again this is based on the WQVGAsmall skin. When I comment out
> the Freesans line and uncomment the rightround line, it defaults to
> something that is neither freesans or rightround. If I comment out the
> "bold" line, squeezeplay won't even start. I've tried matching the
> font.lua to rightround and every way I can think but it always will not
> start if I comment bold. And if I use any other font there, it defaults
> to some other font.
>
> -- Define useful variables for this skin
> local imgpath = "applets/WQVGAsmallSkin/images/"
> local fontpath = "Fonts/"
> local FONT_NAME = "FreeSans"
> --local FONT_NAME = "rightround"
> local BOLD_PREFIX = "Bold"
>
Try to rename your font files to FreeSans.ttf and FreeSansBold.ttf and
overwrite the existing files. If you only have one font file, copy it
to both FreeSans.ttf and FreeSansBold.ttf. This should show if your ttf
files are supported or not. If it shows the correct fonts if you do
this, it's just a matter of figuring out where to specify which fonts
it should use. If it doesn't show the correct fonts if you do this, it
means that your font files aren't supported for some reason.
I think the fonts are specified in the following methods:
WQVGAsmallSkinApplet.lua: _font and _boldfont methods
As you can see in _boldfont, the bold font name is created by
concatenate the FONT_NAME and BOLD_PREFIX constants, so due to this you
probably need to set BOLD_PREFIX to "" and not just comment it if you
only have a single font.
Also note that fonts are loaded specifically in some of the applets,
for example the screen saver clocks (ClockApplet.lua) and image viewer
(ImageViewerApplet.lua).
In the C source code, the FreeSans font seems to be hard coded in two
places:
- in squeezeplay/src/jiveblit.c (I'm not sure this is used)
- in squeezeplay/src/ui/jive_style.c (I think this specifies the
default font that should be used if no other font has been specified)
I this information doesn't help, someone with a bit deeper knowledge of
the SqueezePlay software need to give you an answer, probably someone
from Logitech.
--
erland
Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets'
(http://wiki.slimdevices.com/index.php/User:Erland). If my answer
helped you and you like to encourage future presence on this forum
and/or third party plugin/applet development, 'donations are always
appreciated' (http://erland.isaksson.info/donate))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=80576
_______________________________________________
jive mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive