@expo-google-fonts/material-symbols-outlined 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/MaterialSymbolsOutlined_100Thin.ttf +0 -0
  2. package/100Thin/MaterialSymbolsOutlined_100Thin.ttf.png +0 -0
  3. package/100Thin/index.d.ts +5 -0
  4. package/100Thin/index.js +4 -0
  5. package/200ExtraLight/MaterialSymbolsOutlined_200ExtraLight.ttf +0 -0
  6. package/200ExtraLight/MaterialSymbolsOutlined_200ExtraLight.ttf.png +0 -0
  7. package/200ExtraLight/index.d.ts +5 -0
  8. package/200ExtraLight/index.js +4 -0
  9. package/300Light/MaterialSymbolsOutlined_300Light.ttf +0 -0
  10. package/300Light/MaterialSymbolsOutlined_300Light.ttf.png +0 -0
  11. package/300Light/index.d.ts +5 -0
  12. package/300Light/index.js +4 -0
  13. package/400Regular/MaterialSymbolsOutlined_400Regular.ttf +0 -0
  14. package/400Regular/MaterialSymbolsOutlined_400Regular.ttf.png +0 -0
  15. package/400Regular/index.d.ts +5 -0
  16. package/400Regular/index.js +4 -0
  17. package/500Medium/MaterialSymbolsOutlined_500Medium.ttf +0 -0
  18. package/500Medium/MaterialSymbolsOutlined_500Medium.ttf.png +0 -0
  19. package/500Medium/index.d.ts +5 -0
  20. package/500Medium/index.js +4 -0
  21. package/600SemiBold/MaterialSymbolsOutlined_600SemiBold.ttf +0 -0
  22. package/600SemiBold/MaterialSymbolsOutlined_600SemiBold.ttf.png +0 -0
  23. package/600SemiBold/index.d.ts +5 -0
  24. package/600SemiBold/index.js +4 -0
  25. package/700Bold/MaterialSymbolsOutlined_700Bold.ttf +0 -0
  26. package/700Bold/MaterialSymbolsOutlined_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 MaterialSymbolsOutlined_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 MaterialSymbolsOutlined_100Thin = require('./MaterialSymbolsOutlined_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 MaterialSymbolsOutlined_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 MaterialSymbolsOutlined_200ExtraLight = require('./MaterialSymbolsOutlined_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 MaterialSymbolsOutlined_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 MaterialSymbolsOutlined_300Light = require('./MaterialSymbolsOutlined_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 MaterialSymbolsOutlined_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 MaterialSymbolsOutlined_400Regular = require('./MaterialSymbolsOutlined_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 MaterialSymbolsOutlined_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 MaterialSymbolsOutlined_500Medium = require('./MaterialSymbolsOutlined_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 MaterialSymbolsOutlined_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 MaterialSymbolsOutlined_600SemiBold = require('./MaterialSymbolsOutlined_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 MaterialSymbolsOutlined_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 MaterialSymbolsOutlined_700Bold = require('./MaterialSymbolsOutlined_700Bold.ttf');
package/README.md ADDED
@@ -0,0 +1,165 @@
1
+ # @expo-google-fonts/material-symbols-outlined
2
+
3
+ ![npm version](https://flat.badgen.net/npm/v/@expo-google-fonts/material-symbols-outlined)
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-outlined)
6
+ ![publish size](https://flat.badgen.net/packagephobia/publish/@expo-google-fonts/material-symbols-outlined)
7
+
8
+ This package lets you use the [**Material Symbols Outlined**](https://fonts.google.com/specimen/Material+Symbols+Outlined) font family from [Google Fonts](https://fonts.google.com/) in your Expo app.
9
+
10
+ ## Material Symbols Outlined
11
+
12
+ ![Material Symbols Outlined](./font-family.png)
13
+
14
+ This font family contains [7 styles](#-gallery).
15
+
16
+ - `MaterialSymbolsOutlined_100Thin`
17
+ - `MaterialSymbolsOutlined_200ExtraLight`
18
+ - `MaterialSymbolsOutlined_300Light`
19
+ - `MaterialSymbolsOutlined_400Regular`
20
+ - `MaterialSymbolsOutlined_500Medium`
21
+ - `MaterialSymbolsOutlined_600SemiBold`
22
+ - `MaterialSymbolsOutlined_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-outlined 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-outlined/useFonts';
37
+ import { MaterialSymbolsOutlined_100Thin } from '@expo-google-fonts/material-symbols-outlined/100Thin';
38
+ import { MaterialSymbolsOutlined_200ExtraLight } from '@expo-google-fonts/material-symbols-outlined/200ExtraLight';
39
+ import { MaterialSymbolsOutlined_300Light } from '@expo-google-fonts/material-symbols-outlined/300Light';
40
+ import { MaterialSymbolsOutlined_400Regular } from '@expo-google-fonts/material-symbols-outlined/400Regular';
41
+ import { MaterialSymbolsOutlined_500Medium } from '@expo-google-fonts/material-symbols-outlined/500Medium';
42
+ import { MaterialSymbolsOutlined_600SemiBold } from '@expo-google-fonts/material-symbols-outlined/600SemiBold';
43
+ import { MaterialSymbolsOutlined_700Bold } from '@expo-google-fonts/material-symbols-outlined/700Bold';
44
+
45
+ export default () => {
46
+
47
+ let [fontsLoaded] = useFonts({
48
+ MaterialSymbolsOutlined_100Thin,
49
+ MaterialSymbolsOutlined_200ExtraLight,
50
+ MaterialSymbolsOutlined_300Light,
51
+ MaterialSymbolsOutlined_400Regular,
52
+ MaterialSymbolsOutlined_500Medium,
53
+ MaterialSymbolsOutlined_600SemiBold,
54
+ MaterialSymbolsOutlined_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: "MaterialSymbolsOutlined_100Thin"
70
+ }}>
71
+ Material Symbols Outlined 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: "MaterialSymbolsOutlined_200ExtraLight"
78
+ }}>
79
+ Material Symbols Outlined 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: "MaterialSymbolsOutlined_300Light"
86
+ }}>
87
+ Material Symbols Outlined 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: "MaterialSymbolsOutlined_400Regular"
94
+ }}>
95
+ Material Symbols Outlined 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: "MaterialSymbolsOutlined_500Medium"
102
+ }}>
103
+ Material Symbols Outlined 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: "MaterialSymbolsOutlined_600SemiBold"
110
+ }}>
111
+ Material Symbols Outlined 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: "MaterialSymbolsOutlined_700Bold"
118
+ }}>
119
+ Material Symbols Outlined Bold
120
+ </Text>
121
+ </View>
122
+ );
123
+ }
124
+ };
125
+ ```
126
+
127
+ ## 🔡 Gallery
128
+
129
+
130
+ ||||
131
+ |-|-|-|
132
+ |![MaterialSymbolsOutlined_100Thin](./100Thin/MaterialSymbolsOutlined_100Thin.ttf.png)|![MaterialSymbolsOutlined_200ExtraLight](./200ExtraLight/MaterialSymbolsOutlined_200ExtraLight.ttf.png)|![MaterialSymbolsOutlined_300Light](./300Light/MaterialSymbolsOutlined_300Light.ttf.png)||
133
+ |![MaterialSymbolsOutlined_400Regular](./400Regular/MaterialSymbolsOutlined_400Regular.ttf.png)|![MaterialSymbolsOutlined_500Medium](./500Medium/MaterialSymbolsOutlined_500Medium.ttf.png)|![MaterialSymbolsOutlined_600SemiBold](./600SemiBold/MaterialSymbolsOutlined_600SemiBold.ttf.png)||
134
+ |![MaterialSymbolsOutlined_700Bold](./700Bold/MaterialSymbolsOutlined_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-outlined` 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 Outlined page on Google Fonts](https://fonts.google.com/specimen/Material+Symbols+Outlined) 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 Outlined on Google Fonts](https://fonts.google.com/specimen/Material+Symbols+Outlined)
157
+ - [Google Fonts](https://fonts.google.com/)
158
+ - [This package on npm](https://www.npmjs.com/package/@expo-google-fonts/material-symbols-outlined)
159
+ - [This package on GitHub](https://github.com/expo/google-fonts/tree/master/font-packages/material-symbols-outlined)
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 MaterialSymbolsOutlined_100Thin: number;
7
+ export const MaterialSymbolsOutlined_200ExtraLight: number;
8
+ export const MaterialSymbolsOutlined_300Light: number;
9
+ export const MaterialSymbolsOutlined_400Regular: number;
10
+ export const MaterialSymbolsOutlined_500Medium: number;
11
+ export const MaterialSymbolsOutlined_600SemiBold: number;
12
+ export const MaterialSymbolsOutlined_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 MaterialSymbolsOutlined_100Thin = require('./100Thin/MaterialSymbolsOutlined_100Thin.ttf');
7
+ export const MaterialSymbolsOutlined_200ExtraLight = require('./200ExtraLight/MaterialSymbolsOutlined_200ExtraLight.ttf');
8
+ export const MaterialSymbolsOutlined_300Light = require('./300Light/MaterialSymbolsOutlined_300Light.ttf');
9
+ export const MaterialSymbolsOutlined_400Regular = require('./400Regular/MaterialSymbolsOutlined_400Regular.ttf');
10
+ export const MaterialSymbolsOutlined_500Medium = require('./500Medium/MaterialSymbolsOutlined_500Medium.ttf');
11
+ export const MaterialSymbolsOutlined_600SemiBold = require('./600SemiBold/MaterialSymbolsOutlined_600SemiBold.ttf');
12
+ export const MaterialSymbolsOutlined_700Bold = require('./700Bold/MaterialSymbolsOutlined_700Bold.ttf');
package/metadata.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "family": "Material Symbols Outlined",
3
+ "variants": ["100", "200", "300", "regular", "500", "600", "700"],
4
+ "subsets": ["latin"],
5
+ "version": "v232",
6
+ "lastModified": "2025-03-20",
7
+ "files": {
8
+ "100": "https://fonts.gstatic.com/s/materialsymbolsoutlined/v232/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDCvHeembd5zrTgt.ttf",
9
+ "200": "https://fonts.gstatic.com/s/materialsymbolsoutlined/v232/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDAvHOembd5zrTgt.ttf",
10
+ "300": "https://fonts.gstatic.com/s/materialsymbolsoutlined/v232/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDDxHOembd5zrTgt.ttf",
11
+ "500": "https://fonts.gstatic.com/s/materialsymbolsoutlined/v232/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDCdHOembd5zrTgt.ttf",
12
+ "600": "https://fonts.gstatic.com/s/materialsymbolsoutlined/v232/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDBxG-embd5zrTgt.ttf",
13
+ "700": "https://fonts.gstatic.com/s/materialsymbolsoutlined/v232/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDBIG-embd5zrTgt.ttf",
14
+ "regular": "https://fonts.gstatic.com/s/materialsymbolsoutlined/v232/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDCvHOembd5zrTgt.ttf"
15
+ },
16
+ "category": "monospace",
17
+ "kind": "webfonts#webfont",
18
+ "menu": "https://fonts.gstatic.com/s/materialsymbolsoutlined/v232/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDCvHNenZ9o.ttf"
19
+ }
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@expo-google-fonts/material-symbols-outlined",
3
+ "version": "0.3.0",
4
+ "description": "Use the Material Symbols Outlined 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-outlined"
10
+ },
11
+ "homepage": "https://github.com/expo/google-fonts/tree/master/font-packages/material-symbols-outlined#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
+ }