Home
last modified time | relevance | path

Searched refs:Font (Results 1 – 25 of 82) sorted by relevance

1234

/expo/packages/expo-font/src/__tests__/
H A DFont-test.native.ts3 let Font; variable
35 Font = require('expo-font');
70 await Font.loadAsync('test-font', mockAsset);
195 await Font.loadAsync({
214 Font.loadAsync({
233 const loadPromise1 = Font.loadAsync({
246 const loadPromise2 = Font.loadAsync({
303 Font.loadAsync(fontName, mockAsset);
357 await Font.loadAsync(fontName, mockAsset);
358 expect(Font.isLoaded(fontName)).toBe(true);
[all …]
H A DFont-test.web.ts4 import * as Font from '../index';
19 await Font.unloadAllAsync();
29 expect(Font.isLoaded(name)).toBe(false);
31 await Font.loadAsync(name, resource);
33 expect(Font.isLoaded(name)).toBe(true);
41 display: Font.FontDisplay.AUTO,
44 await Font.unloadAsync(name);
73 await Font.loadAsync(map);
87 await Font.loadAsync(name, resource);
91 display: Font.FontDisplay.AUTO,
[all …]
H A DFontLoader-test.web.ts3 import * as Font from '../Font';
48 expect((FontLoader.getAssetForSource('foo') as any).display).toBe(Font.FontDisplay.AUTO);
50 Font.FontDisplay.AUTO
53 (FontLoader.getAssetForSource({ uri: 'foo', display: Font.FontDisplay.SWAP }) as any).display
54 ).toBe(Font.FontDisplay.SWAP);
56 (FontLoader.getAssetForSource({ default: 'foo', display: Font.FontDisplay.SWAP }) as any)
58 ).toBe(Font.FontDisplay.SWAP);
H A DFont-test.node.ts1 import * as Font from '../index';
13 expect(Font.isLoaded(name)).toBe(false);
15 Font.loadAsync(name, resource);
17 expect(Font.isLoaded(name)).toBe(true);
24 expect(Font.isLoaded(name)).toBe(false);
H A DFontHooks-test.ts3 import * as Font from '../Font';
14 const loadAsyncSpy = jest.spyOn(Font, 'loadAsync').mockResolvedValue();
/expo/apps/test-suite/tests/
H A DFont.js1 import * as Font from 'expo-font';
10 await Font.unloadAsync('cool-font');
23 expect(Font.isLoaded('cool-font')).toBe(false);
24 expect(Font.isLoading('cool-font')).toBe(false);
27 await Font.loadAsync({
30 display: Font.FontDisplay.SWAP,
37 expect(Font.isLoaded('cool-font')).toBe(true);
/expo/apps/native-component-list/src/utilities/
H A DloadAssetsAsync.ts5 import * as Font from 'expo-font';
11 Font.loadAsync(Ionicons.font),
12 Font.loadAsync(MaterialIcons.font),
13 Font.loadAsync({
19 Font.loadAsync({
/expo/packages/expo/build/
H A DExpo.fx.js3 import * as Font from 'expo-font';
10 StyleSheet.setStyleAttributePreprocessor('fontFamily', Font.processFontFamily);
H A DExpo.fx.js.map1Font from 'expo-font';\nimport { NativeModulesProxy, Platform } from 'expo-modules-core';\nimport …
/expo/apps/native-component-list/src/screens/
H A DFontScreen.tsx7 title: 'Font',
31 Font icons sets and other custom fonts can be loaded from the web
34 Font icons sets and other custom fonts can be loaded by providing remote uri as well.
/expo/packages/expo-font/build/
H A DFont.types.d.ts.map1 {"version":3,"file":"Font.types.d.ts","sourceRoot":"","sources":["../src/Font.types.ts"],"names":[]…
H A DFont.d.ts.map1 {"version":3,"file":"Font.d.ts","sourceRoot":"","sources":["../src/Font.ts"],"names":[],"mappings":…
H A Dindex.js.map1 …B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC","sourcesContent":["export * from './Font';\nexport { useFont…
/expo/apps/router-e2e/__e2e__/static-rendering/app/
H A D_layout.tsx3 import * as Font from 'expo-font';
8 const [isLoaded] = Font.useFonts({ sweet: require('../sweet.ttf') });
/expo/packages/expo-router/build/static/
H A DrenderStaticContent.js38 const Font = __importStar(require("expo-font/build/server")); constant
87 Font.resetServerContext();
97 const fonts = Font.getServerResources();
/expo/apps/native-component-list/src/screens/SVG/examples/
H A DVictoryNative.tsx1 import * as Font from 'expo-font';
60 fontFamily={Font.processFontFamily('space-mono')!}
/expo/packages/expo/src/
H A DExpo.fx.tsx4 import * as Font from 'expo-font';
13 StyleSheet.setStyleAttributePreprocessor('fontFamily', Font.processFontFamily);
/expo/packages/expo-router/src/static/
H A DrenderStaticContent.tsx10 import * as Font from 'expo-font/build/server';
77 Font.resetServerContext();
96 const fonts = Font.getServerResources();
/expo/home/
H A DHomeApp.tsx8 import * as Font from 'expo-font';
111 Font.loadAsync(Ionicons.font),
113 ? Font.loadAsync(MaterialIcons.font)
115 Font.loadAsync({
/expo/docs/pages/versions/unversioned/sdk/
H A Dfont.mdx2 title: Font
76 import * as Font from 'expo-font';
/expo/docs/pages/versions/v46.0.0/sdk/
H A Dfont.mdx2 title: Font
76 import * as Font from 'expo-font';
/expo/docs/pages/versions/v49.0.0/sdk/
H A Dfont.mdx2 title: Font
76 import * as Font from 'expo-font';
/expo/docs/pages/versions/v48.0.0/sdk/
H A Dfont.mdx2 title: Font
76 import * as Font from 'expo-font';
/expo/docs/pages/versions/v47.0.0/sdk/
H A Dfont.mdx2 title: Font
76 import * as Font from 'expo-font';
/expo/packages/expo-font/src/__tests__/__snapshots__/
H A DFont-test.native.ts.snap.ios22 …t "loading", but used it before it finished loading. You need to wait for Font.loadAsync to comple…

1234