-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Setup a baseline test for custom fonts not working correctly #10 # Problem When choosing certain fonts, like Avenir-Medium, NativeMarkKit renders them as the "base" font instead of the correct font. # Solution Create a test to reproduce the issue. * Custom fonts don't render correctly [#10] #10 # Problem Certain fonts, like Avenir-Medium, don't correctly render. They end up using the "base" font style (e.g. "book" in this case). It turns out calling `withSymbolTraits` with the existing traits mutates the description, in this case stripping off the font class. # Solution If no traits were specified, don't try to apply them.
- Loading branch information
1 parent
a1bf90c
commit 0fdc7fd
Showing
9 changed files
with
35 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+21 Bytes
(100%)
Tests/NativeMarkKitTests/Fixtures/HelloWorldWithCustomFont.iOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+36 Bytes
(100%)
Tests/NativeMarkKitTests/Fixtures/HelloWorldWithCustomFont.macOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+21 Bytes
(100%)
Tests/NativeMarkKitTests/Fixtures/HelloWorldWithCustomFont.tvOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.39 KB
Tests/NativeMarkKitTests/Fixtures/HelloWorldWithCustomFontTakeTwo.iOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.97 KB
Tests/NativeMarkKitTests/Fixtures/HelloWorldWithCustomFontTakeTwo.macOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.39 KB
Tests/NativeMarkKitTests/Fixtures/HelloWorldWithCustomFontTakeTwo.tvOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.