-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Font] Inconsistent special characters #5642
Comments
Hi @mjasnikovs, did you set |
No
|
Thank you. I have a hunch why it’s inconsistent, but I’ll need to check it—I’m busy today, so I’ll probably get back to you by tomorrow morning. |
@mjasnikovs So, SUI uses Google Fonts, and Google Fonts still uses a very outdated version of Lato font. I tried using the latest version that’s Lato isn’t ideal when it comes to diacritics, so if it’s an issue for you, maybe you’ll have to use something else. In any case, the only way to fix it is to self-host the font. Open /*-------------------------
Fonts extension
-------------------------*/
/* latin */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: url('fonts/Lato-Regular.eot'); /* IE9 Compat Modes */
src: url('fonts/Lato-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('fonts/Lato-Regular.woff2') format('woff2'), /* Modern Browsers */
url('fonts/Lato-Regular.woff') format('woff'), /* Modern Browsers */
url('fonts/Lato-Regular.ttf') format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
/* latin-ext */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: url('fonts/Lato-Regular.eot'); /* IE9 Compat Modes */
src: url('fonts/Lato-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('fonts/Lato-Regular.woff2') format('woff2'), /* Modern Browsers */
url('fonts/Lato-Regular.woff') format('woff'), /* Modern Browsers */
url('fonts/Lato-Regular.ttf') format('truetype');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* cyrillic */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: url('fonts/Lato-Regular.eot'); /* IE9 Compat Modes */
src: url('fonts/Lato-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('fonts/Lato-Regular.woff2') format('woff2'), /* Modern Browsers */
url('fonts/Lato-Regular.woff') format('woff'), /* Modern Browsers */
url('fonts/Lato-Regular.ttf') format('truetype');
unicode-range: U+04??, U+0500-052F, U+2DE0-2DFF, U+A640-A69F, U+1D2B-1D78;
}
/* latin */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 400;
src: url('fonts/Lato-Italic.eot'); /* IE9 Compat Modes */
src: url('fonts/Lato-Italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('fonts/Lato-Italic.woff2') format('woff2'), /* Modern Browsers */
url('fonts/Lato-Italic.woff') format('woff'), /* Modern Browsers */
url('fonts/Lato-Italic.ttf') format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
/* latin-ext */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 400;
src: url('fonts/Lato-Italic.eot'); /* IE9 Compat Modes */
src: url('fonts/Lato-Italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('fonts/Lato-Italic.woff2') format('woff2'), /* Modern Browsers */
url('fonts/Lato-Italic.woff') format('woff'), /* Modern Browsers */
url('fonts/Lato-Italic.ttf') format('truetype');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* cyrillic */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 400;
src: url('fonts/Lato-Italic.eot'); /* IE9 Compat Modes */
src: url('fonts/Lato-Italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('fonts/Lato-Italic.woff2') format('woff2'), /* Modern Browsers */
url('fonts/Lato-Italic.woff') format('woff'), /* Modern Browsers */
url('fonts/Lato-Italic.ttf') format('truetype');
unicode-range: U+04??, U+0500-052F, U+2DE0-2DFF, U+A640-A69F, U+1D2B-1D78;
}
/* latin */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 700;
src: url('fonts/Lato-Bold.eot'); /* IE9 Compat Modes */
src: url('fonts/Lato-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('fonts/Lato-Bold.woff2') format('woff2'), /* Modern Browsers */
url('fonts/Lato-Bold.woff') format('woff'), /* Modern Browsers */
url('fonts/Lato-Bold.ttf') format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
/* latin-ext */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 700;
src: url('fonts/Lato-Bold.eot'); /* IE9 Compat Modes */
src: url('fonts/Lato-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('fonts/Lato-Bold.woff2') format('woff2'), /* Modern Browsers */
url('fonts/Lato-Bold.woff') format('woff'), /* Modern Browsers */
url('fonts/Lato-Bold.ttf') format('truetype');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* cyrillic */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 700;
src: url('fonts/Lato-Bold.eot'); /* IE9 Compat Modes */
src: url('fonts/Lato-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('fonts/Lato-Bold.woff2') format('woff2'), /* Modern Browsers */
url('fonts/Lato-Bold.woff') format('woff'), /* Modern Browsers */
url('fonts/Lato-Bold.ttf') format('truetype');
unicode-range: U+04??, U+0500-052F, U+2DE0-2DFF, U+A640-A69F, U+1D2B-1D78;
}
/* latin */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 700;
src: url('fonts/Lato-BoldItalic.eot'); /* IE9 Compat Modes */
src: url('fonts/Lato-BoldItalic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('fonts/Lato-BoldItalic.woff2') format('woff2'), /* Modern Browsers */
url('fonts/Lato-BoldItalic.woff') format('woff'), /* Modern Browsers */
url('fonts/Lato-BoldItalic.ttf') format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
/* latin-ext */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 700;
src: url('fonts/Lato-BoldItalic.eot'); /* IE9 Compat Modes */
src: url('fonts/Lato-BoldItalic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('fonts/Lato-BoldItalic.woff2') format('woff2'), /* Modern Browsers */
url('fonts/Lato-BoldItalic.woff') format('woff'), /* Modern Browsers */
url('fonts/Lato-BoldItalic.ttf') format('truetype');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* cyrillic */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 700;
src: url('fonts/Lato-BoldItalic.eot'); /* IE9 Compat Modes */
src: url('fonts/Lato-BoldItalic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('fonts/Lato-BoldItalic.woff2') format('woff2'), /* Modern Browsers */
url('fonts/Lato-BoldItalic.woff') format('woff'), /* Modern Browsers */
url('fonts/Lato-BoldItalic.ttf') format('truetype');
unicode-range: U+04??, U+0500-052F, U+2DE0-2DFF, U+A640-A69F, U+1D2B-1D78;
} |
Thank you! For anybody else who runs into this issue! You will have to add Lato fonts and icons font to your project manually. This is useful for projects which are running locally, without access to google required. |
I have made a fork for this issue : https://github.com/arthurlacoste/semantic-ui-offline You cant use this for the css with fonts includes : npm i semantic-ui-offline |
Inconsistent special character size and display.
Is there any specific font to update, or swap?
The text was updated successfully, but these errors were encountered: