baskren / Forms9Patch

Simplify image management and text formatting in your Xamarin.Forms apps

Home Page:http://Forms9Patch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] SystemFont on IOS

AlleSchonWeg opened this issue · comments

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

  • Version with issue: 2.4.7
  • Last known good version: -
  • IDE: VS 2019
  • Platform Target Frameworks:
    • iOS:
    • Android:
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Screenshots

Unbenannt

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

Workaround

Fixed in version 2.4.8