Skip to content

Provide a way of defining fallback fonts for missing characters #304

@Evpok

Description

@Evpok

Referring to How can I specify a chain of fallback fonts in XeLaTeX? and several similar questions on tex.sx (and in other places), there seem to be a need (or at least desire) for a way of providing fallback fonts for missing characters.

Of course there are workarounds, the most common being manually switching fonts for these characters, possibly via wrapping the characters using \newunicodechar, but this is quite cumbersome, and doesn't help when you don't know in advance when you will need to switch fonts. Such a case would be e.g. a bibliography entry in Latin characters, but with a location in another script (e.g. Αθήνα, Ελλάδα).

A nicer workaround is to assign different fonts to different character ranges, using either ad-hoc packages, such as xeCJK, or ucharmap but those are only available for XeLaTeX and even so, it would feel more natural to have it included in fontspec, as e.g. unicode-math does with the range option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions