PNG Font Implementation Problem

  • #1, by wischnikWednesday, 25. October, 12:26 A month ago
    hello there,

    i have run into a really frustrating problem and can't figure out if it's due to a bug or a personal misunderstanding. i've come to really embrace the possibility to work with self-created png-fonts and loved it so far.

    now i wanted to push a bit further and wanted to create a speech-bubble-font. so far — so good. the problem is, as soon as i reach a certain point in the alphabet (in my case it is the number 7), the font breaks down completly although i'm not even using the letter in question (see pictures).

    what is happening?
    the font-file seems to be fine.

    Newbie

    18 Posts


  • #2, by AFRLmeWednesday, 25. October, 13:11 A month ago
    Visionaire doesn't like complicated image font-maps. Also the text is tiny.

    * edit: You could try using a regular font, forcing the line break width in the fonts properties & then use Lua script to have a specific sized speech bubble display where the text is. You could count the amount of characters (letters) to determine which speech bubble graphic to show.

    Check this thread out here: https://www.visionaire-studio.net/forum/thread/speech-bubble...

    Imperator

    5722 Posts

  • #3, by caligarimarteFriday, 27. October, 00:27 3 weeks ago
    If you look closely, the 7 is one Pixel further up than the Rest, so I guess that somehow irritates Visionaire.

    (EDIT #1: That is, in the Visionaire-Screenshot, but I cannot recognize that Difference in the other Image of the Font.)

    (EDIT #2: Why and how are there two different Fonts superimposed in that Screenshot?)

    Forum Fan

    107 Posts

  • #4, by wischnikThursday, 09. November, 12:18 2 weeks ago
     Visionaire doesn't like complicated image font-maps. Also the text is tiny.

    * edit: You could try using a regular font, forcing the line break width in the fonts properties & then use Lua script to have a specific sized speech bubble display where the text is. You could count the amount of characters (letters) to determine which speech bubble graphic to show.

    Check this thread out here: https://www.visionaire-studio.net/forum/thread/speech-bubble...
    thanks for helping me out. the text is tiny because i have setup a tiny resolution. i tried the speech bubble script and it worked, but it didn't give me the amount of control i wanted to archieve. i found a workaround with pseudo-altering the font-png until the font got fully recognized anyways. couldn't be happier.

    i have run into an other dialog-related problem 'though. is there a way to alter the scroll-distance in the dialog-menu? please say yes. it now scrolls 2 or 3 pixel when hitting the scrollbutton in my setup but i need it to a scroll exactly the height of one dialog option.

    (EDIT: nevermind, i'm stupid. my dialog-option-font had a negative line space. it messed up everything.)
    If you look closely, the 7 is one Pixel further up than the Rest, so I guess that somehow irritates Visionaire.

    (EDIT #1: That is, in the Visionaire-Screenshot, but I cannot recognize that Difference in the other Image of the Font.)

    (EDIT #2: Why and how are there two different Fonts superimposed in that Screenshot?)
    i should really use better screenshots. i lifted up the 7 to see if it influenced the implementation. the two superimposed fonts are a visual bug i think.

    Newbie

    18 Posts

  • #5, by AFRLmeThursday, 09. November, 12:35 2 weeks ago
    Ah glad to hear you managed to sort it out. smile

    Imperator

    5722 Posts

Write post