UNPKG

malayalam-fonts

Version:

A collection of open source Malayalam web fonts.

75 lines (54 loc) 1.61 kB
# Gayathri Version: `1.300` To learn about this font, please visit the [source](https://gitlab.com/smc/fonts/Gayathri). ## Font Files * [Gayathri-Regular.woff2](Gayathri-Regular.woff2) * [Gayathri-Bold.woff2](Gayathri-Bold.woff2) * [Gayathri-Thin.woff2](Gayathri-Thin.woff2) ## Supported variants * Weights: Normal (400), Bold (700), Thin (100) * Styles: Normal --- ## Installation ```shell npm install malayalam-fonts ``` ## Usage In your main application file or website component, import the `Gayathri` font like this: ```javascript import "malayalam-fonts/fonts/Gayathri/main.css"; ``` You can specify the font name in a CSS file, CSS Module, or CSS-in-JS. ```css body { font-family: "Gayathri"; font-weight : normal; font-style : normal; } ``` --- ### Use these fonts directly from [jsDelivr CDN](https://www.jsdelivr.com/package/npm/malayalam-fonts) To embed `Gayathri` font, copy the code into the `<head>` of your html : ```css <style> @import url('https://cdn.jsdelivr.net/npm/malayalam-fonts@latest/fonts/Gayathri/main.min.css'); html { font-family : 'Gayathri'; font-weight : normal; font-style : normal; } </style> ``` Refer font face defined in [`CSS`](main.css) file. --- ### Choosing Font Feature with CSS To select specific font features using CSS, you can utilise the `font-feature-settings` property. Follow these steps to apply different features to elements or classes within your html: ```css /* Apply Style 1 */ font-feature-settings: "salt" 1; /* Apply Style 2 */ font-feature-settings: "salt" 2; ``` --- ## License See [OFL.txt](OFL.txt)