Skip to content

Fix the issues for \text from testfont.tex when using XeTeX #13

@razvanm

Description

@razvanm

TeX comes with a small (testfont.tex)[https://ctan.org/pkg/testfont] for testing fonts. One of the commands from there is called \text and it prints a bunch of test with various special characters. It would be nice to make this work properly when using XeTeX and pointing to the .otf font.

Here is a list of the issues I noticed:

  • --- should generate a Em Dash (—, U+2014)
  • two consecutive backticks should generate a Left Double Quotation Mark (“, U+201C)
  • two consecutive single quotes should generate a Right Double Quotation Mark(”, U+201D)
  • ?` should generate a Inverted Question Mark (¿, U+00BF)
  • !` should generate a Inverted Exclamation Mark (¡, U+00A1)
  • Latin Small Letter Sharp S (ß, U+00DF)
  • Latin Capital Letter Ae (Æ, U+00C6)
  • Latin Capital Ligature Oe (Œ, U+0152)
  • Latin Small Letter I with Diaeresis (ï, U+00EF)
  • Latin Small Letter Ae (æ, U+00E6)
  • Latin Small Letter A with Grave (à, U+00E0)
  • Latin Small Ligature Oe (œ, U+0153)
  • the accent is too close to the letter for Latin Small Letter O with Circumflex (ô, U+00F4)
  • Latin Small Letter E with Acute (é, U+00E9)
  • Apostrophe (', U+0027) is used instead of Right Single Quotation Mark (’, U+2019) for words like "aren't".

Example:

testfont-text

The above was produced using is testfont-text.tex and the running the following commands:

xetext testfont-text.tex
gs -dBATCH -dNOPAUSE -sDEVICE=pnggray -dBackgroundColor=16#ffffff -sOutputFile=testfont-text.png -r576 testfont-text.pdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions