This example show how you can add custom fonts inside UI app in Avid MediaCentral | Cloud UX.
⚠️ Disclaimer: Customizing app title font is not supported!
This example is built using Avid cloudux-starter-kit v. 2.1.13 cloudux-starter-kit. Please follow the Quick Start and UI Plugins to get up to speed on how to use the example below.
To run this application you will need following things:
- running MediaCentral | Cloud UX machine
- node.js and npm
- Before running
Configure package.json file:
"alias": "your-avid-app-id",
"secret": "your-app-secret-from-myavid-com"
Configure connection in project.config.json:
"connection": {
"hostIp": "your-mediacentral-cloudux-machine-address",
"hostPort": "",
"proxyPort": "443"
}
From plugin folder in cli type:
npm install
npm start
Go to https://localhost/ in browser to see the app.
Specify your custom font inside /src/app/font.sass with @font-face CSS at-rule:
@font-face
font-family: 'CaviarDreams'
src: url('../fonts/CaviarDreams.ttf') format('truetype')
src: url('../fonts/CaviarDreams.woff') format('woff')
Apply the font to the text inside src/app/index.scss:
.test {
font-size: 32px;
font-style: normal;
font-weight: normal;
font-family: "CaviarDreams";
}
Appearance of the plugin: