TsHTMLLabel and bold font used with Open Sans

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #70445
    bruno
    Participant

    My previous question was unnecessary as I discovered in the source of the component that there was a “FONT FACE” tag available.
    But there is a little annoying bug associated with its use. The text height is not calculated properly when I use the following code :
    '<FONT FACE="Segoe UI Bold">' + Text1 + ' </FONT>' + '<FONT FACE="Segoe UI">' + Text2 + '</FONT>'

    Attachments:
    You must be logged in to view attached files.
    #70447
    bruno
    Participant

    I continued my tests… and finally found the origin of the problem.
    It appears that the font names are located in Windows: if you want to use the bold version of Segoe UI, you’ll need to indicate “Segoe UI Gras” in French and “Segoe UI Bold” in English. That’s pretty annoying if you want your program to function the same way in different countries. But anyway I found the solution for my current need, as I wanted to use “Segoe UI Semibold”, which name seems to remain stable !

    #70456
    Support
    Keymaster

    Hi! It’s interesting, thank you for information.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.