SixLabors / Fonts

:black_nib: Font loading and layout library.
https://sixlabors.com/products/fonts
Other
313 stars 72 forks source link

Fix #316 include open type font(otf) in system font collection. #317

Closed nakamura2000 closed 1 year ago

nakamura2000 commented 1 year ago

Prerequisites

  1. install otf font in os system font directory. (e.x Fonts/tests/SixLabors.Fonts.Tests/Fonts/NotoSansKR-Regular.otf)
  2. list font by this code.

    [Fact]
    public void SystemFonts_HasOTF()
    {
        IEnumerable<FontFamily> matched = SystemFonts.Collection.Families.Where(x => x.Name == "Noto Sans KR");
        Assert.True(matched.Count() != 0);
    }
CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.

codecov[bot] commented 1 year ago

Codecov Report

Merging #317 (17cf049) into main (b97f40e) will increase coverage by 0%. The diff coverage is 100%.

@@          Coverage Diff          @@
##            main    #317   +/-   ##
=====================================
  Coverage     83%     83%           
=====================================
  Files        224     224           
  Lines      12299   12300    +1     
  Branches    1788    1788           
=====================================
+ Hits       10279   10280    +1     
  Misses      1600    1600           
  Partials     420     420           
Flag Coverage Δ
unittests 83% <100%> (+<1%) :arrow_up:

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

Impacted Files Coverage Δ
src/SixLabors.Fonts/SystemFontCollection.cs 53% <100%> (+<1%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more