User Tag List

Results 1 to 4 of 4

Thread: Difference between texts on Android and iOS

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleXNA Export Module
    Dobermann's Avatar
    Join Date
    Feb 2009
    Location
    France
    Posts
    630
    Mentioned
    24 Post(s)
    Tagged
    0 Thread(s)

    Difference between texts on Android and iOS

    My game is available on iOS and Android, each time i make an update i need to edit texts position and some events because the texts sizes aren't exactly the same between Windows/Android and iOS.

    For example, with the font i use for my game (visitor1.ttf, size 18) on Windows and Android, a line of text is 22px height. On iOS it's around 21.6. The text is ok, it's just this line height difference that mess things.
    I would love to get the texts to work on iOS as on Windows/Android and Don't have to play with that each time i do an update.

    Thank you.

  2. #2
    Clicker Fusion 2.5Fusion 2.5 MaciOS Export ModuleMac Export Module
    Cobra's Avatar
    Join Date
    Oct 2009
    Location
    Australia
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A made a bug report about this being the case between exported Mac games and Windows games. Sounds like iOS and Mac exports have the exact same issue with fonts.

  3. #3
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,024
    Mentioned
    128 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by Dobermann View Post
    My game is available on iOS and Android, each time i make an update i need to edit texts position and some events because the texts sizes aren't exactly the same between Windows/Android and iOS.

    For example, with the font i use for my game (visitor1.ttf, size 18) on Windows and Android, a line of text is 22px height. On iOS it's around 21.6. The text is ok, it's just this line height difference that mess things.
    I would love to get the texts to work on iOS as on Windows/Android and Don't have to play with that each time i do an update.

    Thank you.

    Oh the height is entirely the way iOS interpreted the font, this also happens in HTML and inside each browser

    did you try to use "Round" for this value
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleXNA Export Module
    Dobermann's Avatar
    Join Date
    Feb 2009
    Location
    France
    Posts
    630
    Mentioned
    24 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Fernando View Post
    Oh the height is entirely the way iOS interpreted the font, this also happens in HTML and inside each browser

    did you try to use "Round" for this value
    The problem is math, only math. For example i have online scores that is a list of 100 lines. I want to highlight the player score, so i put a blue bar behind his score, i now what position to set the bar with math (position in this list * 22px (1 line height)). But as on iOS line height is different, i need to modify this formula. BUt it isn't as precise as the android version because the line height is somewhere between 21.6 and 21.7.

Similar Threads

  1. Replies: 7
    Last Post: 8th January 2017, 12:49 PM
  2. Difference in physics between android and windows
    By leightonw87 in forum Android Export Module 2.5
    Replies: 7
    Last Post: 11th February 2014, 08:12 PM
  3. [Android/Runtime Difference] Change Animation
    By ProdigyX in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 24th October 2012, 08:29 PM
  4. Some texts not visible
    By Herbert in forum File Archive
    Replies: 0
    Last Post: 11th May 2010, 05:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •