HISE Logo Forum
    • Categories
    • Register
    • Login

    text Scaling differently across OS

    Scheduled Pinned Locked Moved Solved General Questions
    5 Posts 4 Posters 168 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • HISEnbergH
      HISEnberg
      last edited by

      I haven't tried in the exported plugin but I have a project with an imported text. It appears normal on Windows but brought into Mac it seems to scale differently. Has anyone experienced this before/have a remedy?

      Already using Engine.loadFontAs ostensibly platform agnostic.

      d.healeyD orangeO 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @HISEnberg
        last edited by

        @HISEnberg said in text Scaling differently across OS:

        It appears normal on Windows

        What's normal?

        This is a known issue, some fonts don't play nicely across different operating systems. You need to add a check for each OS and adjust the font size accordingly.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 1
        • orangeO
          orange @HISEnberg
          last edited by

          @HISEnberg Yes, this happens with some fonts. You need the Latin-only versions of the font (if you use only Latin chars in your plugin) could help but I am not sure if it works for every font.

          Here is an explanation: https://forum.hise.audio/topic/5958/fonts-smaller-on-windows/3

          develop Branch / XCode 13.1
          macOS Monterey / M1 Max

          HISEnbergH 1 Reply Last reply Reply Quote 0
          • HISEnbergH
            HISEnberg @orange
            last edited by

            @orange @d-healey Thanks I see, I am using Latin-strict fonts but the issue persists. Luckily it is just a few labels that have this issue so I will just resize them for each OS but this is good information to have.

            LindonL 1 Reply Last reply Reply Quote 1
            • HISEnbergH HISEnberg has marked this topic as solved on
            • LindonL
              Lindon @HISEnberg
              last edited by

              @HISEnberg said in text Scaling differently across OS:

              @orange @d-healey Thanks I see, I am using Latin-strict fonts but the issue persists. Luckily it is just a few labels that have this issue so I will just resize them for each OS but this is good information to have.

              If I recall correctly there is the issue that mac pixels are square and Windows they are rectangles... so right down at the lowest possible level of display - they are different - so you need to compensate for the OS (or in this case hardware) in your code..

              HISE Development for hire.
              www.channelrobot.com

              1 Reply Last reply Reply Quote 1
              • First post
                Last post

              25

              Online

              1.7k

              Users

              11.8k

              Topics

              102.5k

              Posts