HISE Logo Forum
    • Categories
    • Register
    • Login

    Fonts smaller on Windows

    Scheduled Pinned Locked Moved General Questions
    fontsizewindows
    3 Posts 3 Posters 337 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.
    • d.healeyD
      d.healey
      last edited by d.healey

      Windows
      0983e46a-5603-48ec-916e-0cd49bb1c150-image.png

      MacOS & GNU/Linux
      b2653bff-fe66-4a48-97b5-9bc599c4bc45-image.png

      @Christoph-Hart I remember a long time ago you added something to take care of this kind of thing. Was it only for the global font though? I'm using g.setFont() a lot in my paint routines and this is where I'm noticing this.

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

      Dan KorneffD orangeO 2 Replies Last reply Reply Quote 0
      • Dan KorneffD
        Dan Korneff @d.healey
        last edited by Dan Korneff

        @d-healey I think all fonts scale differently on each system. Win seems different than mac/linux.
        I resorted to use:

        const var Font_1_Scale = (Engine.getOS() == "WIN" ? 18 : 16);
        

        and then use that variable to set the font size

        Dan Korneff - Producer / Mixer / Audio Nerd

        1 Reply Last reply Reply Quote 1
        • orangeO
          orange @d.healey
          last edited by orange

          @d-healey Some fonts are multiligual and since they are also including non-Latin char sets they use wider metrics. This may end up with different scaling on the different Operating systems. I see that issue especially on the Devanagari type fonts which means they may need to have larger vertical metrics than ordinary Latin fonts, due to stacking conjuncts and mark positioning. This issue also happens on the different web browsers too.

          aac4c7b8-6f6d-11e6-9e49-a1ce330b39e8.png

          Maybe getting the Latin-only versions of the fonts (if you use only Latin chars in your plugin) could help but I am not sure if it works for every font.

          If it is a Google font, you can get Latin-only versions from the Google Webfont Helper here: https://google-webfonts-helper.herokuapp.com/fonts/poppins?subsets=latin

          develop Branch / XCode 13.1
          macOS Monterey / M1 Max

          1 Reply Last reply Reply Quote 0
          • orangeO orange referenced this topic on
          • First post
            Last post

          13

          Online

          1.7k

          Users

          11.8k

          Topics

          102.5k

          Posts