Skip to content

Is it possible to specify the link section of static assets, such as fonts? #5768

Answered by tronical
markszente asked this question in Q&A
Discussion options

You must be logged in to vote

We have an undocumented SLINT_ASSET_SECTION environment variable, which - if set - will place images and pre-rendered glyphs into the section the variable names. It literally results in the Slint compiler emitting #[link_section = XXX] :)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@markszente
Comment options

Answer selected by markszente
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants