Hello Guest

Author Topic: Short characters in font appear at bottom of text mesh  (Read 4288 times)

moofly

  • Guest
Short characters in font appear at bottom of text mesh
« on: December 18, 2015, 04:34:38 pm »
Hello,

I've used GlyphDesigner to export my font which, in addition to the 0-9 A-Z a-z characters, also includes various signs such as a minus.

The problem I'm having is that when I try to display either they appear at the bottom of the line of text, so instead of it looking like a minus it looks like an underscore.  For example, when it should display:  -15   it actually displays something like: _15

Have I imported it wrong?  While manually tweaking the XML file might fix it, I'd rather not resort to that if possible.

Thanks, and thanks again for your awesome life-saving plugin! :)

Matt

moofly

  • Guest
Re: Short characters in font appear at bottom of text mesh
« Reply #1 on: December 22, 2015, 03:31:16 pm »
A bit more information.

The font is being managed by a sprite collection, is that relevant?  The XML file looks fine, here's a snippet:  It's the minus sign I really need (char id 45).

Code: [Select]
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--Created using Glyph Designer - http://71squared.com/glyphdesigner-->
<font>
    <info face="Marvin" size="260" bold="0" italic="0" charset="" unicode="0" stretchH="100" smooth="1" aa="1" padding="0,0,0,0" spacing="4,4"/>
    <common lineHeight="267" base="195" scaleW="1655" scaleH="1824" pages="1" packed="0"/>
    <pages>
        <page id="0" file="marvin200.png"/>
    </pages>
    <chars count="50">
       <char id="40" x="4" y="1304" width="120" height="256" xoffset="0" yoffset="-54" xadvance="120" page="0" chnl="0" letter="("/>
        <char id="41" x="1474" y="1044" width="122" height="256" xoffset="0" yoffset="-54" xadvance="122" page="0" chnl="0" letter=")"/>
        <char id="43" x="527" y="1304" width="112" height="114" xoffset="0" yoffset="88" xadvance="112" page="0" chnl="0" letter="+"/>
        <char id="44" x="643" y="1304" width="66" height="83" xoffset="0" yoffset="119" xadvance="66" page="0" chnl="0" letter=","/>
        <char id="45" x="845" y="1304" width="85" height="64" xoffset="0" yoffset="138" xadvance="85" page="0" chnl="0" letter="-"/>

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Short characters in font appear at bottom of text mesh
« Reply #2 on: December 27, 2015, 01:04:17 am »
Hi,

I can't tell from the xml, really depends on the image as well. Can you post the full font including the image? Or post in the private support forum / email support if you prefer.