Kozea / WeasyPrint

The awesome document factory
https://weasyprint.org
BSD 3-Clause "New" or "Revised" License
7.23k stars 686 forks source link

Style footnote return mark? #2285

Closed cblgh closed 1 week ago

cblgh commented 3 weeks ago

Hi! Is it possible to style the mark displayed after the footnote body, which returns the view to the footnote call?

I'm using WeasyPrint with pandoc to convert Markdown files, and currently this is the mark that's displayed to signal the return link:

Image

I would much rather prefer something else, like:

Image

Thus the question: can I control the styling somehow?

liZe commented 3 weeks ago

Hi!

The problem is complex, and it’s actually out of the scope of WeasyPrint itself.

The colored emoji is used instead of the normal glyph because your computer, and namely the Fontconfig library, is configured to do so. Fontconfig is generally configured to override the current font with a font that contains colored emojis when an emoji is used in a string. That’s really often what you want, but in this case unfortunately it’s not.

WeasyPrint uses the default Fontconfig configuration on the system, and thus follows this rule. It’s the default configuration of Fontconfig, that’s why it’s generally the way it works.

The solution you have is to configure Fontconfig to remove this rule, or to adapt it. That’s probably complex (because Fontconfig’s configuration is complex), but I’m afraid there’s not much we can do about this in WeasyPrint. :/

cblgh commented 1 week ago

@liZe thanks for the comprehensive answer! as a result i understood better what to do and what not to try to aim for