@expo-google-fonts/material-symbols-sharp 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/100Thin/MaterialSymbolsSharp_100Thin.ttf +0 -0
  2. package/100Thin/MaterialSymbolsSharp_100Thin.ttf.png +0 -0
  3. package/100Thin/index.d.ts +5 -0
  4. package/100Thin/index.js +4 -0
  5. package/200ExtraLight/MaterialSymbolsSharp_200ExtraLight.ttf +0 -0
  6. package/200ExtraLight/MaterialSymbolsSharp_200ExtraLight.ttf.png +0 -0
  7. package/200ExtraLight/index.d.ts +5 -0
  8. package/200ExtraLight/index.js +4 -0
  9. package/300Light/MaterialSymbolsSharp_300Light.ttf +0 -0
  10. package/300Light/MaterialSymbolsSharp_300Light.ttf.png +0 -0
  11. package/300Light/index.d.ts +5 -0
  12. package/300Light/index.js +4 -0
  13. package/400Regular/MaterialSymbolsSharp_400Regular.ttf +0 -0
  14. package/400Regular/MaterialSymbolsSharp_400Regular.ttf.png +0 -0
  15. package/400Regular/index.d.ts +5 -0
  16. package/400Regular/index.js +4 -0
  17. package/500Medium/MaterialSymbolsSharp_500Medium.ttf +0 -0
  18. package/500Medium/MaterialSymbolsSharp_500Medium.ttf.png +0 -0
  19. package/500Medium/index.d.ts +5 -0
  20. package/500Medium/index.js +4 -0
  21. package/600SemiBold/MaterialSymbolsSharp_600SemiBold.ttf +0 -0
  22. package/600SemiBold/MaterialSymbolsSharp_600SemiBold.ttf.png +0 -0
  23. package/600SemiBold/index.d.ts +5 -0
  24. package/600SemiBold/index.js +4 -0
  25. package/700Bold/MaterialSymbolsSharp_700Bold.ttf +0 -0
  26. package/700Bold/MaterialSymbolsSharp_700Bold.ttf.png +0 -0
  27. package/700Bold/index.d.ts +5 -0
  28. package/700Bold/index.js +4 -0
  29. package/README.md +165 -0
  30. package/font-family.png +0 -0
  31. package/index.d.ts +12 -0
  32. package/index.js +12 -0
  33. package/metadata.json +19 -0
  34. package/package.json +17 -0
  35. package/useFonts.d.ts +15 -0
  36. package/useFonts.js +25 -0
@@ -0,0 +1,5 @@
1
+ /// Generated by expo-google-fonts/generator
2
+ /// Do not edit by hand unless you know what you are doing
3
+ ///
4
+
5
+ export const MaterialSymbolsSharp_100Thin: number;
@@ -0,0 +1,4 @@
1
+ // This file is generated by @expo-google-fonts/generator
2
+ // If you want to modify it, go to packages/generator/templates
3
+
4
+ export const MaterialSymbolsSharp_100Thin = require('./MaterialSymbolsSharp_100Thin.ttf');
@@ -0,0 +1,5 @@
1
+ /// Generated by expo-google-fonts/generator
2
+ /// Do not edit by hand unless you know what you are doing
3
+ ///
4
+
5
+ export const MaterialSymbolsSharp_200ExtraLight: number;
@@ -0,0 +1,4 @@
1
+ // This file is generated by @expo-google-fonts/generator
2
+ // If you want to modify it, go to packages/generator/templates
3
+
4
+ export const MaterialSymbolsSharp_200ExtraLight = require('./MaterialSymbolsSharp_200ExtraLight.ttf');
@@ -0,0 +1,5 @@
1
+ /// Generated by expo-google-fonts/generator
2
+ /// Do not edit by hand unless you know what you are doing
3
+ ///
4
+
5
+ export const MaterialSymbolsSharp_300Light: number;
@@ -0,0 +1,4 @@
1
+ // This file is generated by @expo-google-fonts/generator
2
+ // If you want to modify it, go to packages/generator/templates
3
+
4
+ export const MaterialSymbolsSharp_300Light = require('./MaterialSymbolsSharp_300Light.ttf');
@@ -0,0 +1,5 @@
1
+ /// Generated by expo-google-fonts/generator
2
+ /// Do not edit by hand unless you know what you are doing
3
+ ///
4
+
5
+ export const MaterialSymbolsSharp_400Regular: number;
@@ -0,0 +1,4 @@
1
+ // This file is generated by @expo-google-fonts/generator
2
+ // If you want to modify it, go to packages/generator/templates
3
+
4
+ export const MaterialSymbolsSharp_400Regular = require('./MaterialSymbolsSharp_400Regular.ttf');
@@ -0,0 +1,5 @@
1
+ /// Generated by expo-google-fonts/generator
2
+ /// Do not edit by hand unless you know what you are doing
3
+ ///
4
+
5
+ export const MaterialSymbolsSharp_500Medium: number;
@@ -0,0 +1,4 @@
1
+ // This file is generated by @expo-google-fonts/generator
2
+ // If you want to modify it, go to packages/generator/templates
3
+
4
+ export const MaterialSymbolsSharp_500Medium = require('./MaterialSymbolsSharp_500Medium.ttf');
@@ -0,0 +1,5 @@
1
+ /// Generated by expo-google-fonts/generator
2
+ /// Do not edit by hand unless you know what you are doing
3
+ ///
4
+
5
+ export const MaterialSymbolsSharp_600SemiBold: number;
@@ -0,0 +1,4 @@
1
+ // This file is generated by @expo-google-fonts/generator
2
+ // If you want to modify it, go to packages/generator/templates
3
+
4
+ export const MaterialSymbolsSharp_600SemiBold = require('./MaterialSymbolsSharp_600SemiBold.ttf');
@@ -0,0 +1,5 @@
1
+ /// Generated by expo-google-fonts/generator
2
+ /// Do not edit by hand unless you know what you are doing
3
+ ///
4
+
5
+ export const MaterialSymbolsSharp_700Bold: number;
@@ -0,0 +1,4 @@
1
+ // This file is generated by @expo-google-fonts/generator
2
+ // If you want to modify it, go to packages/generator/templates
3
+
4
+ export const MaterialSymbolsSharp_700Bold = require('./MaterialSymbolsSharp_700Bold.ttf');
package/README.md ADDED
@@ -0,0 +1,165 @@
1
+ # @expo-google-fonts/material-symbols-sharp
2
+
3
+ ![npm version](https://flat.badgen.net/npm/v/@expo-google-fonts/material-symbols-sharp)
4
+ ![license](https://flat.badgen.net/github/license/expo/google-fonts)
5
+ ![publish size](https://flat.badgen.net/packagephobia/install/@expo-google-fonts/material-symbols-sharp)
6
+ ![publish size](https://flat.badgen.net/packagephobia/publish/@expo-google-fonts/material-symbols-sharp)
7
+
8
+ This package lets you use the [**Material Symbols Sharp**](https://fonts.google.com/specimen/Material+Symbols+Sharp) font family from [Google Fonts](https://fonts.google.com/) in your Expo app.
9
+
10
+ ## Material Symbols Sharp
11
+
12
+ ![Material Symbols Sharp](./font-family.png)
13
+
14
+ This font family contains [7 styles](#-gallery).
15
+
16
+ - `MaterialSymbolsSharp_100Thin`
17
+ - `MaterialSymbolsSharp_200ExtraLight`
18
+ - `MaterialSymbolsSharp_300Light`
19
+ - `MaterialSymbolsSharp_400Regular`
20
+ - `MaterialSymbolsSharp_500Medium`
21
+ - `MaterialSymbolsSharp_600SemiBold`
22
+ - `MaterialSymbolsSharp_700Bold`
23
+
24
+ ## Usage
25
+
26
+ Run this command from the shell in the root directory of your Expo project to add the font family package to your project
27
+
28
+ ```sh
29
+ npx expo install @expo-google-fonts/material-symbols-sharp expo-font
30
+ ```
31
+
32
+ Now add code like this to your project
33
+
34
+ ```js
35
+ import { Text, View } from "react-native";
36
+ import { useFonts } from '@expo-google-fonts/material-symbols-sharp/useFonts';
37
+ import { MaterialSymbolsSharp_100Thin } from '@expo-google-fonts/material-symbols-sharp/100Thin';
38
+ import { MaterialSymbolsSharp_200ExtraLight } from '@expo-google-fonts/material-symbols-sharp/200ExtraLight';
39
+ import { MaterialSymbolsSharp_300Light } from '@expo-google-fonts/material-symbols-sharp/300Light';
40
+ import { MaterialSymbolsSharp_400Regular } from '@expo-google-fonts/material-symbols-sharp/400Regular';
41
+ import { MaterialSymbolsSharp_500Medium } from '@expo-google-fonts/material-symbols-sharp/500Medium';
42
+ import { MaterialSymbolsSharp_600SemiBold } from '@expo-google-fonts/material-symbols-sharp/600SemiBold';
43
+ import { MaterialSymbolsSharp_700Bold } from '@expo-google-fonts/material-symbols-sharp/700Bold';
44
+
45
+ export default () => {
46
+
47
+ let [fontsLoaded] = useFonts({
48
+ MaterialSymbolsSharp_100Thin,
49
+ MaterialSymbolsSharp_200ExtraLight,
50
+ MaterialSymbolsSharp_300Light,
51
+ MaterialSymbolsSharp_400Regular,
52
+ MaterialSymbolsSharp_500Medium,
53
+ MaterialSymbolsSharp_600SemiBold,
54
+ MaterialSymbolsSharp_700Bold
55
+ });
56
+
57
+ let fontSize = 24;
58
+ let paddingVertical = 6;
59
+
60
+ if (!fontsLoaded) {
61
+ return null;
62
+ } else {
63
+ return (
64
+ <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
65
+ <Text style={{
66
+ fontSize,
67
+ paddingVertical,
68
+ // Note the quoting of the value for `fontFamily` here; it expects a string!
69
+ fontFamily: "MaterialSymbolsSharp_100Thin"
70
+ }}>
71
+ Material Symbols Sharp Thin
72
+ </Text>
73
+ <Text style={{
74
+ fontSize,
75
+ paddingVertical,
76
+ // Note the quoting of the value for `fontFamily` here; it expects a string!
77
+ fontFamily: "MaterialSymbolsSharp_200ExtraLight"
78
+ }}>
79
+ Material Symbols Sharp Extra Light
80
+ </Text>
81
+ <Text style={{
82
+ fontSize,
83
+ paddingVertical,
84
+ // Note the quoting of the value for `fontFamily` here; it expects a string!
85
+ fontFamily: "MaterialSymbolsSharp_300Light"
86
+ }}>
87
+ Material Symbols Sharp Light
88
+ </Text>
89
+ <Text style={{
90
+ fontSize,
91
+ paddingVertical,
92
+ // Note the quoting of the value for `fontFamily` here; it expects a string!
93
+ fontFamily: "MaterialSymbolsSharp_400Regular"
94
+ }}>
95
+ Material Symbols Sharp Regular
96
+ </Text>
97
+ <Text style={{
98
+ fontSize,
99
+ paddingVertical,
100
+ // Note the quoting of the value for `fontFamily` here; it expects a string!
101
+ fontFamily: "MaterialSymbolsSharp_500Medium"
102
+ }}>
103
+ Material Symbols Sharp Medium
104
+ </Text>
105
+ <Text style={{
106
+ fontSize,
107
+ paddingVertical,
108
+ // Note the quoting of the value for `fontFamily` here; it expects a string!
109
+ fontFamily: "MaterialSymbolsSharp_600SemiBold"
110
+ }}>
111
+ Material Symbols Sharp Semi Bold
112
+ </Text>
113
+ <Text style={{
114
+ fontSize,
115
+ paddingVertical,
116
+ // Note the quoting of the value for `fontFamily` here; it expects a string!
117
+ fontFamily: "MaterialSymbolsSharp_700Bold"
118
+ }}>
119
+ Material Symbols Sharp Bold
120
+ </Text>
121
+ </View>
122
+ );
123
+ }
124
+ };
125
+ ```
126
+
127
+ ## 🔡 Gallery
128
+
129
+
130
+ ||||
131
+ |-|-|-|
132
+ |![MaterialSymbolsSharp_100Thin](./100Thin/MaterialSymbolsSharp_100Thin.ttf.png)|![MaterialSymbolsSharp_200ExtraLight](./200ExtraLight/MaterialSymbolsSharp_200ExtraLight.ttf.png)|![MaterialSymbolsSharp_300Light](./300Light/MaterialSymbolsSharp_300Light.ttf.png)||
133
+ |![MaterialSymbolsSharp_400Regular](./400Regular/MaterialSymbolsSharp_400Regular.ttf.png)|![MaterialSymbolsSharp_500Medium](./500Medium/MaterialSymbolsSharp_500Medium.ttf.png)|![MaterialSymbolsSharp_600SemiBold](./600SemiBold/MaterialSymbolsSharp_600SemiBold.ttf.png)||
134
+ |![MaterialSymbolsSharp_700Bold](./700Bold/MaterialSymbolsSharp_700Bold.ttf.png)||||
135
+
136
+
137
+ ## 👩‍💻 Use During Development
138
+
139
+ If you are trying out lots of different fonts, you can try using the [`@expo-google-fonts/dev` package](https://github.com/expo/google-fonts/tree/master/font-packages/dev#readme).
140
+
141
+ You can import _any_ font style from any Expo Google Fonts package from it. It will load the fonts over the network at runtime instead of adding the asset as a file to your project, so it may take longer for your app to get to interactivity at startup, but it is extremely convenient for playing around with any style that you want.
142
+
143
+
144
+ ## 📖 License
145
+
146
+ The `@expo-google-fonts/material-symbols-sharp` package and its code are released under the MIT license.
147
+
148
+ All the fonts in the Google Fonts catalog are free and open source.
149
+
150
+ Check the [Material Symbols Sharp page on Google Fonts](https://fonts.google.com/specimen/Material+Symbols+Sharp) for the specific license of this font family.
151
+
152
+ You can use these fonts freely in your products & projects - print or digital, commercial or otherwise. However, you can't sell the fonts on their own. This isn't legal advice, please consider consulting a lawyer and see the full license for all details.
153
+
154
+ ## 🔗 Links
155
+
156
+ - [Material Symbols Sharp on Google Fonts](https://fonts.google.com/specimen/Material+Symbols+Sharp)
157
+ - [Google Fonts](https://fonts.google.com/)
158
+ - [This package on npm](https://www.npmjs.com/package/@expo-google-fonts/material-symbols-sharp)
159
+ - [This package on GitHub](https://github.com/expo/google-fonts/tree/master/font-packages/material-symbols-sharp)
160
+ - [The Expo Google Fonts project on GitHub](https://github.com/expo/google-fonts)
161
+ - [`@expo-google-fonts/dev` Devlopment Package](https://github.com/expo/google-fonts/tree/master/font-packages/dev)
162
+
163
+ ## 🤝 Contributing
164
+
165
+ Contributions are very welcome! This entire directory, including what you are reading now, was generated from code. Instead of submitting PRs to this directly, please make contributions to [the generator](https://github.com/expo/google-fonts/tree/master/packages/generator) instead.
Binary file
package/index.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ // This file is generated by @expo-google-fonts/generator
2
+ // If you want to modify it, go to packages/generator/templates
3
+
4
+ export * from './useFonts';
5
+ export const __metadata__: any;
6
+ export const MaterialSymbolsSharp_100Thin: number;
7
+ export const MaterialSymbolsSharp_200ExtraLight: number;
8
+ export const MaterialSymbolsSharp_300Light: number;
9
+ export const MaterialSymbolsSharp_400Regular: number;
10
+ export const MaterialSymbolsSharp_500Medium: number;
11
+ export const MaterialSymbolsSharp_600SemiBold: number;
12
+ export const MaterialSymbolsSharp_700Bold: number;
package/index.js ADDED
@@ -0,0 +1,12 @@
1
+ // This file is generated by @expo-google-fonts/generator
2
+ // If you want to modify it, go to packages/generator/templates
3
+
4
+ export * from './useFonts';
5
+ export { default as __metadata__ } from './metadata.json';
6
+ export const MaterialSymbolsSharp_100Thin = require('./100Thin/MaterialSymbolsSharp_100Thin.ttf');
7
+ export const MaterialSymbolsSharp_200ExtraLight = require('./200ExtraLight/MaterialSymbolsSharp_200ExtraLight.ttf');
8
+ export const MaterialSymbolsSharp_300Light = require('./300Light/MaterialSymbolsSharp_300Light.ttf');
9
+ export const MaterialSymbolsSharp_400Regular = require('./400Regular/MaterialSymbolsSharp_400Regular.ttf');
10
+ export const MaterialSymbolsSharp_500Medium = require('./500Medium/MaterialSymbolsSharp_500Medium.ttf');
11
+ export const MaterialSymbolsSharp_600SemiBold = require('./600SemiBold/MaterialSymbolsSharp_600SemiBold.ttf');
12
+ export const MaterialSymbolsSharp_700Bold = require('./700Bold/MaterialSymbolsSharp_700Bold.ttf');
package/metadata.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "family": "Material Symbols Sharp",
3
+ "variants": ["100", "200", "300", "regular", "500", "600", "700"],
4
+ "subsets": ["latin"],
5
+ "version": "v228",
6
+ "lastModified": "2025-03-20",
7
+ "files": {
8
+ "100": "https://fonts.gstatic.com/s/materialsymbolssharp/v228/gNNBW2J8Roq16WD5tFNRaeLQk6-SHQ_R00k4c2_whPnoY9ruReaU4bHmz74m0ZkGH-VBYe1x0TV6x4yFH8F-H5OdzEL3sVTgJtfbYxOLozCOJ1H7-knk.ttf",
9
+ "200": "https://fonts.gstatic.com/s/materialsymbolssharp/v228/gNNBW2J8Roq16WD5tFNRaeLQk6-SHQ_R00k4c2_whPnoY9ruReaU4bHmz74m0ZkGH-VBYe1x0TV6x4yFH8F-H5OdzEL3sVTgJtfbYxMLojCOJ1H7-knk.ttf",
10
+ "300": "https://fonts.gstatic.com/s/materialsymbolssharp/v228/gNNBW2J8Roq16WD5tFNRaeLQk6-SHQ_R00k4c2_whPnoY9ruReaU4bHmz74m0ZkGH-VBYe1x0TV6x4yFH8F-H5OdzEL3sVTgJtfbYxPVojCOJ1H7-knk.ttf",
11
+ "500": "https://fonts.gstatic.com/s/materialsymbolssharp/v228/gNNBW2J8Roq16WD5tFNRaeLQk6-SHQ_R00k4c2_whPnoY9ruReaU4bHmz74m0ZkGH-VBYe1x0TV6x4yFH8F-H5OdzEL3sVTgJtfbYxO5ojCOJ1H7-knk.ttf",
12
+ "600": "https://fonts.gstatic.com/s/materialsymbolssharp/v228/gNNBW2J8Roq16WD5tFNRaeLQk6-SHQ_R00k4c2_whPnoY9ruReaU4bHmz74m0ZkGH-VBYe1x0TV6x4yFH8F-H5OdzEL3sVTgJtfbYxNVpTCOJ1H7-knk.ttf",
13
+ "700": "https://fonts.gstatic.com/s/materialsymbolssharp/v228/gNNBW2J8Roq16WD5tFNRaeLQk6-SHQ_R00k4c2_whPnoY9ruReaU4bHmz74m0ZkGH-VBYe1x0TV6x4yFH8F-H5OdzEL3sVTgJtfbYxNspTCOJ1H7-knk.ttf",
14
+ "regular": "https://fonts.gstatic.com/s/materialsymbolssharp/v228/gNNBW2J8Roq16WD5tFNRaeLQk6-SHQ_R00k4c2_whPnoY9ruReaU4bHmz74m0ZkGH-VBYe1x0TV6x4yFH8F-H5OdzEL3sVTgJtfbYxOLojCOJ1H7-knk.ttf"
15
+ },
16
+ "category": "monospace",
17
+ "kind": "webfonts#webfont",
18
+ "menu": "https://fonts.gstatic.com/s/materialsymbolssharp/v228/gNNBW2J8Roq16WD5tFNRaeLQk6-SHQ_R00k4c2_whPnoY9ruReaU4bHmz74m0ZkGH-VBYe1x0TV6x4yFH8F-H5OdzEL3sVTgJtfbYxOLogCPLVU.ttf"
19
+ }
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@expo-google-fonts/material-symbols-sharp",
3
+ "version": "0.3.0",
4
+ "description": "Use the Material Symbols Sharp font family from Google Fonts in your Expo app",
5
+ "main": "index.js",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/expo/google-fonts.git",
9
+ "directory": "font-packages/material-symbols-sharp"
10
+ },
11
+ "homepage": "https://github.com/expo/google-fonts/tree/master/font-packages/material-symbols-sharp#readme",
12
+ "author": "Expo Team <team@expo.io>",
13
+ "license": "MIT",
14
+ "publishConfig": {
15
+ "access": "public"
16
+ }
17
+ }
package/useFonts.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ export type FontSource = string | number | Asset | FontResource;
2
+
3
+ /**
4
+ * Load a map of custom fonts to use in textual elements.
5
+ * The map keys are used as font names, and can be used with `fontFamily: <name>;`.
6
+ * It returns a boolean describing if all fonts are loaded.
7
+ *
8
+ * Note, the fonts are not "reloaded" when you dynamically change the font map.
9
+ *
10
+ * @see https://docs.expo.io/versions/latest/sdk/font/
11
+ * @example const [loaded, error] = useFonts(...);
12
+ */
13
+ export function useFonts(
14
+ map: string | { [fontFamily: string]: FontSource }
15
+ ): [boolean, Error | null];
package/useFonts.js ADDED
@@ -0,0 +1,25 @@
1
+ import { loadAsync } from 'expo-font';
2
+ import { useEffect, useState } from 'react';
3
+
4
+ /**
5
+ * Load a map of custom fonts to use in textual elements.
6
+ * The map keys are used as font names, and can be used with `fontFamily: <name>;`.
7
+ * It returns a boolean describing if all fonts are loaded.
8
+ *
9
+ * Note, the fonts are not "reloaded" when you dynamically change the font map.
10
+ *
11
+ * @see https://docs.expo.io/versions/latest/sdk/font/
12
+ * @example const [loaded, error] = useFonts(...);
13
+ */
14
+ export function useFonts(map) {
15
+ const [loaded, setLoaded] = useState(false);
16
+ const [error, setError] = useState(null);
17
+
18
+ useEffect(() => {
19
+ loadAsync(map)
20
+ .then(() => setLoaded(true))
21
+ .catch(setError);
22
+ }, []);
23
+
24
+ return [loaded, error];
25
+ }