Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Better support for fallback from one set of fonts to another. #333

Closed
pnorman opened this issue Mar 14, 2014 · 1 comment
Closed

Better support for fallback from one set of fonts to another. #333

pnorman opened this issue Mar 14, 2014 · 1 comment
Milestone

Comments

@pnorman
Copy link
Contributor

pnorman commented Mar 14, 2014

In openstreetmap-carto we try to fall back from bold fonts to book fonts with MSS like this

@book-fonts:    "DejaVu Sans Book", "Arundina Sans Regular", "Padauk Regular", "Khmer OS Metal Chrieng Regular", "Droid Sans Fallback Regular", "unifont Medium";
@bold-fonts:    "DejaVu Sans Bold", "Arundina Sans Bold", "Padauk Bold", 
                "DejaVu Sans Book", "Arundina Sans Regular", "Padauk Regular", "Khmer OS Metal Chrieng Regular", "Droid Sans Fallback Regular", "unifont Medium";
@oblique-fonts: "DejaVu Sans Oblique", "Arundina Sans Italic", 
                "DejaVu Sans Book", "Arundina Sans Regular", "Padauk Regular", "Khmer OS Metal Chrieng Regular", "Droid Sans Fallback Regular", "unifont Medium";

This means repeating the @book-fonts list of fonts for both bold and oblique. It would be cleaner to be able to refer to it once. Apparently @bold-fonts: "DejaVu Sans Bold", "Arundina Sans Bold", "Padauk Bold", @book-fonts results in it attempting to find a font with the name of all of the book fonts.

@pnorman
Copy link
Contributor Author

pnorman commented Mar 26, 2014

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants