HISE Logo Forum
    • Categories
    • Register
    • Login

    Font weight property due to rendering difference between OSX and WIN

    Scheduled Pinned Locked Moved Feature Requests
    4 Posts 2 Posters 306 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.
    • ustkU
      ustk
      last edited by ustk

      @Christoph-Hart I am currently using an embedded font so it is used on both OSX and WIN.
      But the fact is that both OS don't render the same font with the same weight (Windows font-weight rendering is lighter than OSX)

      If, for windows, I embed the bold equivalent in order to compensate, this time it is too big, thus not usable this way. And "Bold" is another font anyway, which means you need to embed two fonts for doing the same job.

      Having a weight control would be very useful so you can fine-tune on both OS using Engine.getOs();, or just because it would be helpful anyway...

      So is there a chance to implement a fontWeight property?

      Can't help pressing F5 in the forum...

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by

        I am afraid that is one cross-platform difference that is almost impossible to overcome.

        Font rendering is being forwarded to native OS calls and the Direct2D font rendering just behaves differently than the CoreImage font renderer.

        ustkU 1 Reply Last reply Reply Quote 0
        • ustkU
          ustk @Christoph Hart
          last edited by

          @Christoph-Hart Hmm... Do you mean it is not possible to just have a weight parameter?
          I understand they behave differently, this is the "why" of the issue here. But controlling the weight should be doable like in text editors, isn't it?
          Unless the parameter is not portable between the two renderers, or not easily accessible...

          Can't help pressing F5 in the forum...

          1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart
            last edited by

            @ustk said in Font weight property due to rendering difference between OSX and WIN:

            Unless the parameter is not portable between the two renderers, or not easily accessible...

            this.

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

            55

            Online

            1.7k

            Users

            11.7k

            Topics

            101.8k

            Posts