uswds / public-sans

A strong, neutral, principles-driven, open source typeface for text or display
https://public-sans.digital.gov/
Other
4.44k stars 102 forks source link

Public Sans - Bug: Some letters and sequences of DIN 91379 are rendered incorrectly. #277

Open vk-github18 opened 1 year ago

vk-github18 commented 1 year ago

Describe the bug

Font version

PublicSans-Regular 2.001; ttfautohint (v1.8.3)

Platform

Linux

Other Software

hb-view (HarfBuzz) 2.8.1

What happened?

Some letters and sequences of DIN 91379 are rendered incorrectly.

Letters

IJ ij ʼn Ƈ ƈ Ɨ Ʒ Ǖ ǖ Ǘ ǘ Ǚ ǚ Ǜ ǜ Ǟ ǟ Ǥ ǥ ǩ Ǯ ǯ Ǻ ǻ Ȫ ȫ Ȭ ȭ Ȱ ȱ ɨ ʒ Ḃ ḃ Ḇ ḇ Ḋ ḋ Ḏ ḏ Ḟ ḟ Ḫ ḫ ḯ ḱ Ḵ ḵ Ḻ ḻ Ṁ ṁ Ṃ ṃ Ṉ ṉ Ṓ ṓ Ṕ ṕ Ṗ ṗ Ṟ ṟ ṫ Ṯ ṯ Ẍ ẍ Ẕ ẕ ẖ ẗ ẞ C̕ C̨̆ F̀ F̄ H̱ K̕ K̛ K͟H K͟h L̥ L̥̄ M̀ M̂ M̆ M̐ P̀ P̄ P̕ P̣ R̆ R̥ R̥̄ S̛̄ S̱ T̕ T̛ c̕ c̨̆ d̂ f̀ f̄ k̀ k̂ k̄ k̇ k̕ k̛ k̦ k͟h l̥ l̥̄ m̀ m̂ m̆ m̐ p̀ p̄ p̕ p̣ r̥ r̥̄ s̱ t̀ t̄ t̕ t̛ Û̄ ç̆ û̄ ÿ́ Č̕ č̕ Ī́ ī́ ḳ̄ ṭ̄ ʹ ʺ ʾ ʿ ˈ ˌ

List of Letters with code points

list.txt

Rendering with Public Sans

list_PublicSans-Regular.pdf

Rendering with Arimo

list_Arimo-Regular.pdf

List of all Letters defined in DIN 91379

latin_list_all.txt

See also:

Steps to reproduce the bug

Render lists of letters with hb-view: for f in *.ttf *otf ; do for t in letters.txt list.txt latin*.txt; do echo $t $f printf "$f\n\n">x cat $t >> x hb-view -o ${t%.*}_${f%.*}.pdf --font-size 32 $f <x rm x done done

Expected Behavior

Correct rendering of letters, see list_Arimo-Regular.pdf

Related code

No response

Screenshots

No response

System setup

PublicSans-Regular 2.001; ttfautohint (v1.8.3)

Linux

hb-view (HarfBuzz) 2.8.1

Additional context

Rendering of all letters from DIN 91379 is appended: latin_list_all_PublicSans-Regular.pdf

Code of Conduct