Skip to content

Adding android OS support to SystemFontCollection - #291

Merged
JimBobSquarePants merged 2 commits into
SixLabors:mainfrom
bbo76:main
Jul 26, 2022
Merged

Adding android OS support to SystemFontCollection#291
JimBobSquarePants merged 2 commits into
SixLabors:mainfrom
bbo76:main

Conversation

@bbo76

@bbo76 bbo76 commented Jul 19, 2022

Copy link
Copy Markdown
Contributor

Android ttf files are located in /system/fonts

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

Adding Android fonts path to support them in MAUI project

Android ttf files are located in /system/fonts
@codecov

codecov Bot commented Jul 22, 2022

Copy link
Copy Markdown

Codecov Report

Merging #291 (a8d0077) into main (691f770) will decrease coverage by 0%.
The diff coverage is 0%.

@@          Coverage Diff          @@
##            main    #291   +/-   ##
=====================================
- Coverage     83%     83%   -1%     
=====================================
  Files        222     222           
  Lines      12266   12271    +5     
  Branches    1779    1780    +1     
=====================================
  Hits       10248   10248           
- Misses      1586    1591    +5     
  Partials     432     432           
Flag Coverage Δ
unittests 83% <0%> (-1%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/SixLabors.Fonts/SystemFontCollection.cs 52% <0%> (-5%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us.

Unit test for the new plateform android directory
Assert.Contains(@"/Library/Fonts/", exception.Message, StringComparison.OrdinalIgnoreCase);
Assert.Contains(exception.SearchDirectories, e => e.IndexOf("Library/Fonts", StringComparison.OrdinalIgnoreCase) != -1);
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Create("Android")))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have the infrastructure in place to test this but definitely good to add for the future.

@JimBobSquarePants JimBobSquarePants left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. Looks great 👍

@JimBobSquarePants
JimBobSquarePants merged commit 323ea06 into SixLabors:main Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants