baskren / Forms9Patch

Simplify image management and text formatting in your Xamarin.Forms apps
http://Forms9Patch.com
Other
127 stars 33 forks source link

[Bug] SystemFont on IOS #81

Closed AlleSchonWeg closed 3 years ago

AlleSchonWeg commented 3 years ago

Description

The System Font on iOS is not working. It falls back to default. It is easy to see with the g char.

Steps to Reproduce

Try this simple Xaml:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:Forms9Patch="clr-namespace:Forms9Patch;assembly=Forms9Patch"
             x:Class="Forms9LabelFontTest.MainPage">
  <StackLayout>
    <Label Text="Normal: ggg"
           FontFamily=".SFUI"
           FontSize="40" />
    <Label Text="Semibold: ggg"
           FontFamily=".SFUI-Semibold"
           FontSize="40" />

    <Forms9Patch:Label FontFamily=".SFUI"
                       FontSize="40"
                       Text="Normal: ggg" />
    <Forms9Patch:Label FontFamily=".SFUI-Semibold"
                       FontSize="40"
                       Text="Semibold: ggg" />
  </StackLayout>
</ContentPage>

Expected Behavior

Forms9 Label should use SFUI Font.

Actual Behavior

Forms9 Label use default Font.

Basic Information

Screenshots

Unbenannt

Reproduction Link - a link to a small demo project that reproduces this issue

Workaround

AlleSchonWeg commented 3 years ago

Demo: Forms9LabelFontTest.zip

baskren commented 3 years ago

Fixed in version 2.4.8