Font weight property due to rendering difference between OSX and WIN



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



  • 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.



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



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


Log in to reply
 

6
Online

553
Users

2.1k
Topics

16.5k
Posts