Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::IRFontAsset Struct Reference

A bundled (non-system) font shipped with the design (figma-plugin #43a: envelope font_family_assets[]). More...

#include <design_ir.hpp>

Public Attributes

std::string family
std::string style
int weight = 400
std::string asset_id
std::string resolved_path
std::string font_style
int weight_max = 0
std::string unicode_range

Detailed Description

A bundled (non-system) font shipped with the design (figma-plugin #43a: envelope font_family_assets[]).

The importer registers each one with the text renderer (#43b) so setFontFamily(family) resolves to the bundled face instead of silently falling back to a system font of the same name.

A browser capture adds one entry per captured @font-face rule, in the order the page defined them, carrying the rule's CSS descriptors. Several rules may share one asset (a variable font bound at several weights), and one family may span several assets split by unicode_range.

Member Data Documentation

◆ asset_id

std::string pulp::view::IRFontAsset::asset_id

◆ family

std::string pulp::view::IRFontAsset::family

◆ font_style

std::string pulp::view::IRFontAsset::font_style

◆ resolved_path

std::string pulp::view::IRFontAsset::resolved_path

◆ style

std::string pulp::view::IRFontAsset::style

◆ unicode_range

std::string pulp::view::IRFontAsset::unicode_range

◆ weight

int pulp::view::IRFontAsset::weight = 400

◆ weight_max

int pulp::view::IRFontAsset::weight_max = 0

The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/view/include/pulp/view/design_ir.hpp