Create a custom font
This topic describes how to create a new custom font entry in the Fonts tool and configure it for use in the PDF Designer or the UI5 Theme Generator.
Prerequisites
-
The font files you want to upload are available on your local machine and are not inside a ZIP archive.
-
You know which tools (PDF Designer and/or UI5 Theme Generator) will use the font, so you can prepare the correct file formats:
-
.ttfor.otffor the PDF Designer -
.woff2for the UI5 Theme Generator
-
Procedure
Step 1: Create custom font entry
-
Open the Fonts tool in the Cockpit.
-
Select Create to open the new font dialog.
-
Enter a name for the font and assign the font to a development package.
-
On the General tab, select the checkboxes for the tools in which you want to use the font:
-
Select Use in PDF Designer to make the font available in the PDF Designer.
-
Select Use in UI5 Theme Generator to make the font available in the UI5 Theme Generator.
-
-
Save the font entry.
Step 2: Upload font files
You can upload font files using the Add dialog or by dragging and dropping files in the Files tab.
Step 3: Assign font styles
-
Open the Font Styles tab.
-
Assign the uploaded font files to the appropriate style slots for each tool selected in Step 1.
-
For the PDF Designer, assign all four required styles:
-
Regular
-
Bold
-
Italic
-
Bold Italic
-
-
For the UI5 Theme Generator, assign the styles for which you have font files:
-
Regular, Bold, SemiBold, Light, SemiBoldDuplex, Black
-
| The PDF Designer requires all four style variants to be assigned. If any are missing, the font will not be available for selection in the PDF Designer. |
Result
-
The custom font is created, configured, and ready for use.
-
If deployed, it is available in the PDF Designer and/or UI5 Theme Generator as configured.