Italic and Bold font style does not work on MacOS #325
Replies: 6 comments 6 replies
-
Hi @hanslavdal, thank you for the report! We already started an issue for it, take a look: #322 |
Beta Was this translation helpful? Give feedback.
-
@hanslavdal According @jareddavison in #322 (comment) this issue is not reproducible. Are you using a custom font? If so, you should also register the bold version of your custom font. If not, can you give more information about device, OS, RAD Studio version / skia version? |
Beta Was this translation helpful? Give feedback.
-
I've tested ThtPanel for this. From what I can see it shows bold if TLabel shows bold: |
Beta Was this translation helpful? Give feedback.
-
@hanslavdal , I'm aware of some additional issues with ThtPanel which are currently unresolved, but I've made Alexander is aware and requested help with. E.g Herculanum font. (examples use the patched FMX.SKIA.Canvas.pas) You'll see SKIA has defaulted back to ordinary font for non regular style, whereas ThtPanel has just used the regular for all the others, but they aren't styled. E.g Klee Another custom font Happy Times: (weirdness there too, not just MACOS but windows also (without SKIA)) |
Beta Was this translation helpful? Give feedback.
-
Using Bodoni 72 which is available in Apple Pages, I've done a comparison. There does seem to be a problem with SKIA choosing the correct font for non-regular styles (even with the patch), for the TLabel components. You will see ThtPanel seems to have done a better job somehow in this case, although its hard to tell in the Italic & Bold case if it is bold, it doesn't appear to be when compared to bold line above, but Apple Pages also failed to Italic the Bold and Italic lines at the bottom too. Also without SKIA it behaves similarly although the italics styling seems different in the TLabel: |
Beta Was this translation helpful? Give feedback.
-
@viniciusfbb I use the latest version of HTML components (48). But for my test, I just use a TLabel in a new empty app (with Skia enabled), using the default font: I saw there is a workaround mentioned in the other thread, but since I am using the build-in Skia in Delphi 12.1, I am not sure how many dependencies there are if I rebuild it. PS. Bold font DOES work, sorry that I included that one in my message. I misread my own notes: the problem we had with bold font was that it appeared one pixel higher than the normal text, but I cannot reproduce that right now. So its only Italic that fails. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Thank you for the great work you have made with skia4delphi! Its great that we can now finally enable Metal on MacOS without quality degration.
However, there seem to be a general issue on MacOS that the Italic and Bold font style does not work. We mainly use font styles with the "DelphiHtmlComponents" and reported the error there, but Alexander answered that it was a general problem in Skia, and after that I tried with a simple application and can comfirm that its the case.
I don't know if you are you aware of this bug already?
PS. There is an report on quality portal about this too: https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-1231
Beta Was this translation helpful? Give feedback.
All reactions