Characters like `tt` , `ti`, `ff` in my html page disappears while viewing with chrome and safari

后端 未结 1 587
心在旅途
心在旅途 2021-01-16 08:13

In a particular html file all \"ti\",\"fi\",\"tt\" characters are missing while viewing (The characters are there when we view it in inspect element).

e

1条回答
  •  死守一世寂寞
    2021-01-16 08:39

    The above issue occurs only in - webkit web browsers like chrome and safari - which provides support for ligatures - whereas browser like firefox does not.

    A ligature is a combination of two or more letters joined as a single glyph

    ​Root cause

    This issue with missing characters is due to ligature support provided by these modern browsers - let me explain how

    1.The tool while converting - it converts characters to glyphs using poppler for rendering - now these browser when they come across characters like tt tf ti ff fi consider them to be ligature and searches for glyphs corresponding to tt and not t t

    2.Since they do not have their corresponding glyphs - they just skip the characters and renders the rest - so, we fount the characters missing

    Could be solved by

    Disabling/ Turning-off the ligature in these browsers - embedding the css in the generating content

    For more details please refer:

    • Prevent ligatures in Safari (Mavericks/iOS7) via CSS

    Please correct me if I am wrong.

    0 讨论(0)
提交回复
热议问题