Fonts can also be supplied to the whole engine rather than stored in the report. This example registers a TTF file with the global font collection.

Registering the resource. Load or register the external resource before rendering so the finished report remains portable across environments.
<script setup lang="ts">
import { Designer, Stimulsoft } from 'stimulsoft-reports-js-vuejs/designer'

var report = new Stimulsoft.Report.StiReport();
report.loadFile("Reports/CusomFontSimpleList.mrt");

// Adding Custom Font
Stimulsoft.Base.StiFontCollection.addFontFile('Fonts/LongCang-Regular.ttf');

var designerOptions = new Stimulsoft.Designer.StiDesignerOptions();
designerOptions.appearance.fullScreenMode = true;
</script>

<template>
    <Designer :report="report" :options="designerOptions" />
</template>
StiFontCollection.addFontFile makes the font available for rendering and export across all reports, without embedding it into a specific template.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.