Skip to content

Help with the fonts 🙏 #494

Answered by pr-apes
Cicorione asked this question in Q&A
Apr 29, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Never mind, working on the code I eventually understood, not matter what the regular face must be declared even though you do not load it... 🤦‍♂️

I don't know whether this might help, @Cicorione.

When you define a font family, Publisher uses the regular font, unless you request bold, italics or bold italics.

Publisher gives errors when a requested font cannot be found (since it is not defined, it cannot find it).

In your case, you have two options:

  • Provide a only a regular font, such as in:

    <DefineFontfamily fontsize="32" leading="32" name="tito">
     <Regular fontface="CamingoCode-Bold" />
    </DefineFontfamily>

    The regular font is marked by the <Regular> element, not by the name or filename

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Cicorione
Comment options

@pgundlach
Comment options

@pr-apes
Comment options

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