Last active
May 22, 2021 20:07
-
-
Save fallsimply/eb4945ea5b5d41b167efdfbc25e8431d to your computer and use it in GitHub Desktop.
Revisions
-
fallsimply revised this gist
May 22, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Replace: android:font="@font/inter_$1_italic" /> ``` # List ``` thin 100 extralight 200 -
fallsimply revised this gist
May 22, 2021 . 1 changed file with 6 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ # Regexp Find: `(\w+) (\d+)` Replace: ``` <font android:fontStyle="normal" @@ -12,7 +13,7 @@ REPLACE: android:font="@font/inter_$1_italic" /> ``` # List: ``` thin 100 extralight 200 @@ -25,7 +26,8 @@ extrabold 800 black 900 ``` # Script Google Fonts ``` copy($$(".variant__style").map(e => e.innerText).join("\n")) ``` -
fallsimply revised this gist
May 22, 2021 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ FIND: `(\w+) (\d+)` REPLACE: ``` <font -
fallsimply revised this gist
May 22, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ FIND: `(\w+) (\d+)` REPLACE: ``` <font -
fallsimply created this gist
May 22, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ FIND: `(\w+) (\d+)` REPLACE: ``` <font android:fontStyle="normal" android:fontWeight="$2" android:font="@font/inter_$1" /> <font android:fontStyle="italic" android:fontWeight="$2" android:font="@font/inter_$1_italic" /> ``` LIST (Example): ``` thin 100 extralight 200 light 300 regular 400 medium 500 semibold 600 bold 700 extrabold 800 black 900 ``` Google Fonts Userscript ``` copy($$(".variant__style").map(e => e.innerText).join("\n")) ```