Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amatic SC font does not include latin-ext unicode range #43

Open
bancek opened this issue Jun 1, 2022 · 0 comments
Open

Amatic SC font does not include latin-ext unicode range #43

bancek opened this issue Jun 1, 2022 · 0 comments

Comments

@bancek
Copy link

bancek commented Jun 1, 2022

On one of the pages that uses your Timeline I've noticed that non-latin characters are not displayed correctly. The problem is that your custom font definition for Amatic SC font does not include latin-ext variant.

https://cdn.knightlab.com/libs/timeline3/latest/embed/index.html?source=1Ovu5cVuGEVp1uRpKdAaRZ7wlxX9JFsCWtOqR7UA9nmQ&font=Amatic-Andika&lang=sl&initial_zoom=4&height=730

Screenshot 2022-06-01 at 11 20 25

https://cdn.knightlab.com/libs/timeline3/latest/css/fonts/font.amatic-andika.css

Google Fonts supports other variants (e.g. latin-ext) you would just have to add them.

https://fonts.googleapis.com/css2?family=Amatic+SC

/* latin-ext */
@font-face {
  font-family: 'Amatic SC';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/amaticsc/v24/TUZyzwprpvBS1izr_vOEBOSfU5cP1V3r.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant