Description
While support is getting better and better for people to write in various scripts around the world using unicode, and now you can even write in emojis as well, unfortunately most fonts[citation needed] are still missing Latin characters based on the double acute accent, which is required to write properly in Hungarian.
These characters are the following four:
- U+0150 LATIN CAPITAL LETTER O WITH DOUBLE ACUTE (Ő)
- U+0151 LATIN SMALL LETTER O WITH DOUBLE ACUTE (ő)
- U+0170 LATIN CAPITAL LETTER U WITH DOUBLE ACUTE (Ű)
- U+0171 LATIN SMALL LETTER U WITH DOUBLE ACUTE (ű)
Task
Your task is to write a program / script / function, that given a font or a font's name gives out a truthy value in case the font contains all of the four glyphs described above, or a falsey value if at least one of them is missing from the font.
Scoring
This is code-golf, so lowest byte-count wins
Test cases
These fonts are from Google Fonts. Note that some fonts on Google Fonts (for example Lato) have an updated version on other sites which already contain the missing glyphs, if you have the updated ones then obviously your results might be different from the test cases below.
Truthy values:
Roboto
Open Sans
Lalezar
Source Sans Pro
Arial
Times New Roman
Cinzel
Falsey values:
Voltaire
Rosario
Heebo
Bitter
Arvo
Lato (see note above)
Molengo (contains ű and Ű, but not ő or Ő)
Sue Ellen Francisco (contains only the uppercase variants)
Germania One (contains only the lowercase variants)
Garamond (the one installed on OSX by Office for Mac)
Notes
- It's up to you if your program requires a font's name as a parameter or the actual font (or the font's location on the system)
- If it's a font's name the program should check the system font registered at that name (for example if you specify
"Arial"
it should use the Arial font in your system's font registry) - If it's a location the program should use that specific font, even if there is a system font registered with that same name (for example if you specify
"/home/user/Arial.ttf"
it should use that font even if there's an Arial registered in the system's store) - Google Fonts above is just a convenient place you can download fonts for testing purposes, but your code doesn't need to use those fonts
- It is enough if your program works with only one specific font type, e.g. TTF, OTF, WOFF, SVG font, Type 1, Metafont, etc. However you should support a font format that has generic support for the four glyphs and for signalling missing glyphs mentioned above, e.g. you cannot chose a font format where the answer will always be falsey or truthy
- Some fonts might have the above glyphs incorrectly hardcoded to a fake value (e.g. the replacement box) instead of not specifying in the font file at all. Your code doesn't need to be able to differentiate between a fake glyph and a real glyph, but it's also acceptable if it does the check based on that.
Please specify in your answer how you have to pass in the font, and what kind of fonts it works with.
0
would be a valid answer in many languages... \$\endgroup\$