Forum

    • Register
    • Login
    • Search
    • Categories

    Fonts smaller on Windows

    General Questions
    font size windows
    3
    3
    30
    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.healey
      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

      dustbro orange 2 Replies Last reply Reply Quote 0
      • dustbro
        dustbro @d.healey last edited by dustbro

        @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
        • orange
          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

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

          20
          Online

          792
          Users

          5.5k
          Topics

          51.6k
          Posts