Skip to content

Commit db5bac6

Browse files
committed
[Browser Rendering] upd custom font usage examples
1 parent 7efdc30 commit db5bac6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/content/docs/browser-rendering/reference/supported-fonts.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Browser Rendering includes additional font packages for non-Latin scripts and em
7070
If a required font is not pre-installed, you can inject it into the page at render time using `addStyleTag`. This allows you to load fonts from an external URL or embed them directly as a Base64 string.
7171

7272
<Tabs> <TabItem label="JavaScript" icon="seti:javascript">
73-
With a CDN source:
73+
Example with puppeteer and a CDN source:
7474

7575
```js
7676
const browser = await puppeteer.launch(env.MYBROWSER);
@@ -92,7 +92,7 @@ await page.addStyleTag({
9292
```
9393

9494
</TabItem> <TabItem label="TypeScript" icon="seti:typescript">
95-
With a CDN source:
95+
Example with puppeteer and a CDN source:
9696

9797
```ts
9898
const browser = await puppeteer.launch(env.MYBROWSER);
@@ -117,10 +117,10 @@ await page.addStyleTag({
117117

118118

119119
<Tabs> <TabItem label="JavaScript" icon="seti:javascript">
120-
With a Base64 encoded data source:
120+
Example with playwright and a Base64 encoded data source:
121121

122122
```js
123-
const browser = await puppeteer.launch(env.MYBROWSER);
123+
const browser = await playwright.launch(env.MYBROWSER);
124124
const page = await browser.newPage();
125125
await page.addStyleTag({
126126
content: `
@@ -139,7 +139,7 @@ await page.addStyleTag({
139139
```
140140

141141
</TabItem> <TabItem label="TypeScript" icon="seti:typescript">
142-
With a Base64 encoded data source:
142+
Example with playwright and a Base64 encoded data source:
143143

144144
```ts
145145
const browser = await puppeteer.launch(env.MYBROWSER);

0 commit comments

Comments
 (0)