0

tl;dr; - use the toggle button, see what happens: jsfiddle.net/zt6gapL5/

When building a website, I naturally have a lang="xx" attribute on mu HTML tag. Took a while to delete each and every part of the document, to finally realise that it was causing my font to look totally different. The website is in "bg", but the design I've been given, using that exact same font, must be with a lang="en" in order to look right.

On chrome, when I put -webkit-locale: "en" as CSS, it works. But only for chrome, obviously.

As you can see, the font is totally different: lang="bg":https://i.stack.imgur.com/da0gf.png lang="en":https://i.stack.imgur.com/pP6Cp.png

Option 1: using lang="en", when the site is NOT in EN Option 2: removing the lang attribute whatsoever. Does the meta tag still work? Option 3: Using CSS to fix things, however I couldn't find a solution for firefox...

-webkit-locale: 'en'; fixes the problem for webkit browsers. Sadly diversity is against me this time.

E_net4
  • 27,810
  • 13
  • 101
  • 139
Marin HTML
  • 126
  • 9

1 Answers1

-1

Maybe this will help get the right characterset. https://en.wikipedia.org/wiki/KOI8-U ....KOI8-U (RFC 2319) is an 8-bit character encoding, designed to cover Ukrainian, It is based on KOI8-R, which covers Russian and Bulgarian

Winston
  • 38
  • 6
  • Thanks for answering. Unsure how to handle this though. Adding "" to the code didn't help, sadly. And using UTF-8 is preferable for me, always... – Marin HTML Dec 08 '22 at 13:58
  • FYI - Unicode is UTF-8 ... Unicode is preferred to KOI-8 and its variants or other Cyrillic encodings in modern applications, especially on the Internet, making UTF-8 the dominant encoding for web pages. – Winston Dec 08 '22 at 14:02
  • This answer might help you a lot: https://stackoverflow.com/questions/4696499/meta-charset-utf-8-vs-meta-http-equiv-content-type – Winston Dec 08 '22 at 14:07
  • 2
    Encoding is not the issue. It's likely that the Commissioner font has different glyphs for Bulgarian, and that the language tagging is activating glyph substitutions. – Peter Constable Dec 08 '22 at 16:46
  • Finally a valid comment. Thanks, Peter. Winston, I'm a dev for 10 years now, I know the general idea for building websites....... – Marin HTML Dec 09 '22 at 06:35