-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Italics does not render in Firemonkey when SKIA is enabled on Apple platforms iOS and MACOS #322
Comments
@jareddavison I suspect that the limitation is related only to Oblique font slant, not Italic. I am now without my mac to test it. Can you test it? Font.StyleExt = {02040000000100000004000000} The follow line is for FontSlant=Oblique: Font.StyleExt = {02040000000200000004000000} Off-topic: Just to who it may interest, I also made a tool to convert font weight, slant and stretch to TFontStyleExt and vice-versa as you cannot choose it using the IDE UI on the previous versions of RAD Studio: |
Thank you @viniciusfbb . that's interesting but I don't really understand the implication. Is this a style mapping issue? See the design time (Windows) and runtime (MacOS) versions of the form: Updated project files: |
@jareddavison I don't know exactly the reason for this yet, and I really want to investigate more about this first. However, now we already have a possible workaround: skia4delphi/Source/FMX/FMX.Skia.Canvas.pas Line 3033 in 0a62f87
to: SkFontSlant : array[TFontSlant] of TSkFontSlant = (TSkFontSlant.Upright, TSkFontSlant.Italic, {$IFDEF MACOS}TSkFontSlant.Italic{$ELSE}TSkFontSlant.Oblique{$ENDIF}); |
Yes. Design-time does not use skia because the GlobalUseSkia is False by default and your application change it only in runtime. |
Co-Authored-By: Paulo César Botelho Barbosa <16469061 [email protected]> #322
@jareddavison The user Hans Jakobsen said on RSS-1231 that Italic Bold does not work. Can you confirm if that workaround works for italic bold also? |
@viniciusfbb, I couldn't reproduce it as reported by Hans Jakobsen. See image below. Using the unpatched FMX.Skia.Canvas, bold does appear bold, but Italics was broken. |
@jareddavison Thank you very much! |
Italics do not render in Firemonkey app when SKIA is enabled on Apple platforms iOS and MACOS
I've logged this issue also with Embarcardero as RSS-1231
The text was updated successfully, but these errors were encountered: