Skip to content

Commit ecccebe

Browse files
authored
Update supported-fonts.mdx
add links and fix example
1 parent a14f430 commit ecccebe

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-
Example with puppeteer and a CDN source:
73+
Example with [Puppeteer](/browser-rendering/platform/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-
Example with puppeteer and a CDN source:
95+
Example with [Puppeteer](/browser-rendering/platform/puppeteer/) and a CDN source:
9696

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

118118

119119
<Tabs> <TabItem label="JavaScript" icon="seti:javascript">
120-
Example with playwright and a Base64 encoded data source:
120+
Example with [Playwright](/browser-rendering/platform/playwright/) and a Base64 encoded data source:
121121

122122
```js
123123
const browser = await playwright.launch(env.MYBROWSER);
@@ -139,10 +139,10 @@ await page.addStyleTag({
139139
```
140140

141141
</TabItem> <TabItem label="TypeScript" icon="seti:typescript">
142-
Example with playwright and a Base64 encoded data source:
142+
Example with [Playwright](/browser-rendering/platform/playwright/) and a Base64 encoded data source:
143143

144144
```ts
145-
const browser = await puppeteer.launch(env.MYBROWSER);
145+
const browser = await playwright.launch(env.MYBROWSER);
146146
const page = await browser.newPage();
147147
await page.addStyleTag({
148148
content: `

0 commit comments

Comments
 (0)