Skip to content

Commit

Permalink
fix fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
LunatiqueCoder committed Jan 19, 2023
1 parent 2a2509f commit bf88bdc
Show file tree
Hide file tree
Showing 9 changed files with 111 additions and 95 deletions.
12 changes: 6 additions & 6 deletions template/android/link-assets-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@
"sha1": "cf2dcfd6aa812f641e3d2c81af69a6c553539083"
},
{
"path": "node_modules/@tamagui/font-silkscreen/files/slkscr.ttf",
"sha1": "417bc8219cf9d819c538c052397f3352dda426a7"
"path": "node_modules/@tamagui/font-silkscreen/files/Silkscreen-bold.ttf",
"sha1": "a960fd4e201077cda027756743c344ffcb8285fb"
},
{
"path": "node_modules/@tamagui/font-silkscreen/files/slkscr.woff",
"sha1": "30d9b6f1b318c955d613dcf18d572f9aee9a35c8"
"path": "node_modules/@tamagui/font-silkscreen/files/Silkscreen.ttf",
"sha1": "417bc8219cf9d819c538c052397f3352dda426a7"
},
{
"path": "node_modules/@tamagui/font-silkscreen/files/slkscrb.ttf",
"sha1": "a960fd4e201077cda027756743c344ffcb8285fb"
"path": "node_modules/@tamagui/font-silkscreen/files/Silkscreen.woff",
"sha1": "30d9b6f1b318c955d613dcf18d572f9aee9a35c8"
}
]
}
160 changes: 80 additions & 80 deletions template/ios/ProjectName.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions template/ios/ProjectName/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
<string>Inter-SemiBoldItalic.otf</string>
<string>Inter-Thin.otf</string>
<string>Inter-ThinItalic.otf</string>
<string>slkscr.ttf</string>
<string>slkscrb.ttf</string>
<string>Silkscreen-bold.ttf</string>
<string>Silkscreen.ttf</string>
</array>
</dict>
</plist>
12 changes: 6 additions & 6 deletions template/ios/link-assets-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@
"sha1": "cf2dcfd6aa812f641e3d2c81af69a6c553539083"
},
{
"path": "node_modules/@tamagui/font-silkscreen/files/slkscr.ttf",
"sha1": "417bc8219cf9d819c538c052397f3352dda426a7"
"path": "node_modules/@tamagui/font-silkscreen/files/Silkscreen-bold.ttf",
"sha1": "a960fd4e201077cda027756743c344ffcb8285fb"
},
{
"path": "node_modules/@tamagui/font-silkscreen/files/slkscr.woff",
"sha1": "30d9b6f1b318c955d613dcf18d572f9aee9a35c8"
"path": "node_modules/@tamagui/font-silkscreen/files/Silkscreen.ttf",
"sha1": "417bc8219cf9d819c538c052397f3352dda426a7"
},
{
"path": "node_modules/@tamagui/font-silkscreen/files/slkscrb.ttf",
"sha1": "a960fd4e201077cda027756743c344ffcb8285fb"
"path": "node_modules/@tamagui/font-silkscreen/files/Silkscreen.woff",
"sha1": "30d9b6f1b318c955d613dcf18d572f9aee9a35c8"
}
]
}
12 changes: 12 additions & 0 deletions template/patches/@tamagui+font-silkscreen+1.0.17.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/node_modules/@tamagui/font-silkscreen/files/slkscrb.ttf b/node_modules/@tamagui/font-silkscreen/files/Silkscreen-bold.ttf
similarity index 100%
rename from node_modules/@tamagui/font-silkscreen/files/slkscrb.ttf
rename to node_modules/@tamagui/font-silkscreen/files/Silkscreen-bold.ttf
diff --git a/node_modules/@tamagui/font-silkscreen/files/slkscr.ttf b/node_modules/@tamagui/font-silkscreen/files/Silkscreen.ttf
similarity index 100%
rename from node_modules/@tamagui/font-silkscreen/files/slkscr.ttf
rename to node_modules/@tamagui/font-silkscreen/files/Silkscreen.ttf
diff --git a/node_modules/@tamagui/font-silkscreen/files/slkscr.woff b/node_modules/@tamagui/font-silkscreen/files/Silkscreen.woff
similarity index 100%
rename from node_modules/@tamagui/font-silkscreen/files/slkscr.woff
rename to node_modules/@tamagui/font-silkscreen/files/Silkscreen.woff
6 changes: 5 additions & 1 deletion template/tamagui/fonts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function createGenericFont<

const systemFamily =
process.env.TAMAGUI_TARGET === 'native'
? 'Inter'
? 'Inter-Medium'
: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';

const silkscreenFont = createSilkscreenFont();
Expand Down Expand Up @@ -99,6 +99,10 @@ const bodyFont = createInterFont(
1: '500',
7: '600',
},
// for native
face: {
900: {normal: 'Inter-Bold'},
},
},
{
sizeSize: size => Math.round(size),
Expand Down

1 comment on commit bf88bdc

@vercel
Copy link

@vercel vercel bot commented on bf88bdc Jan 19, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

luna – ./

luna-gamma.vercel.app
luna-criszz77.vercel.app
luna-git-master-criszz77.vercel.app

Please sign in to comment.