Skip to content

Commit d18f1f1

Browse files
committed
docs: added font installation steps
1 parent 382d447 commit d18f1f1

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

packages/fluent/docs/index.md

+27-1
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,39 @@ For the Kendo UI Fluent theme to closely implement the [Fluent Design System](ht
3333

3434
By default, the Fluent theme uses the Segoe UI font family but the font itself is not included in the theme package.
3535

36-
You can [download](https://aka.ms/webfluentfonts) and add the font in the following way:
36+
To include the Segoe UI font in your project, follow these steps:
37+
38+
1. Download the Segoe UI font from [Microsoft](https://aka.ms/webfluentfonts). The download includes the Segoe UI Regular, Segoe UI Italic, Segoe UI Bold, and Segoe UI Bold Italic font files.
39+
2. Add the downloaded font files to your project's assets folder. {% platform_content angular %} For Angular, make sure that the folder is included in the assets section of the `angular.json` file. {% endplatform_content %} {% platform_content react %} For React, make sure that the folder is included in the `public` directory. {% endplatform_content %}{% platform_content vue %} For Vue, make sure that the folder is included in the `public` directory. {% endplatform_content %}
40+
3. In your HTML file or global style sheet, add the following code to include the font:
41+
42+
```html-no-run
43+
<style>
44+
@font-face {
45+
font-family: 'Segoe UI';
46+
src: url('/src/assets/segoeui.ttf') format('truetype');
47+
font-weight: normal;
48+
font-style: normal;
49+
}
50+
</style>
51+
```
52+
53+
{% platform_content angular %}
54+
The `@font-face` rule should be added to the `styles.css` or `style.scss` file in the `src` folder of your Angular project.
55+
{% endplatform_content %}
56+
57+
Make sure to replace the path in the `url` property with the actual path to the downloaded font file in your project.
58+
59+
4. Finally, update the CSS code in your file to use the Segoe UI font:
3760
3861
```html-no-run
3962
<style>
4063
body { font-family: "Segoe UI", sans-serif; }
4164
</style>
4265
```
66+
67+
That's it! The Segoe UI font will now be applied to your project.
68+
4369
## Dynamic customization
4470

4571
The Kendo UI Fluent theme utilizes [CSS custom properties (variables)](https://developer.mozilla.org/en-US/docs/Web/CSS/--*) which allows for dynamic customization without needing to recompile the theme.

0 commit comments

Comments
 (0)