[]
In ActiveReportsJS Designer, you can view the list of available fonts in Font Family property of a text box. The fonts within the designer are hardcoded, therefore the fonts installed at system level are not available for designing.
You can add fonts to the list of available fonts by modifying the fonts configuration (fontsConfig.json) file shipped with the designer as follows:
~\AppData\Roaming\ActiveReportsJS Designer\
.~/Library/Application Support/ActivereportsJS Designer/
.~/.config/ActivereportsJS Designer/
. {
"path": "",
"descriptors": [
{
"name": "Noto Sans CJK JP",
"source": "NotoSansCJKjp-Regular.otf"
},
{
"name": "Noto Serif CJK JP",
"source": "NotoSerifCJKjp-Regular.otf"
}
]
}
Now, the added fonts are available to be used in reports, as shown in the Font Family property's drop down.
The fonts described in the fontsConfig.json for designer can also be used in viewer, thereby reducing size of the code. See Fonts topic on how you can register fonts in ActiveReportsJS Viewer when you have already added the fonts in the json file.