• Font support for utf8

    From Richard Harnden@21:1/5 to All on Fri Dec 20 13:55:18 2024
    Hi,

    Is there anyway I can tell whether a particular uft8 code-point is
    actually implemented in my terminal's current font?

    For example, 0xe2 0x96 0x89 "▉" "Left Seven Eighths Block" is often
    displayed as the i-don't-know-what-this-is glyph.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John McCue@21:1/5 to Richard Harnden on Fri Dec 20 15:14:30 2024
    Richard Harnden <richard.nospam@gmail.invalid> wrote:
    Hi,

    Is there anyway I can tell whether a particular uft8 code-point is
    actually implemented in my terminal's current font?

    The only way I know is to write a small program to
    print it. That is what I did for various UTF-8
    characters I like to use.

    For example, 0xe2 0x96 0x89 "?" "Left Seven Eighths Block" is often
    displayed as the i-don't-know-what-this-is glyph.

    FWIW, 7/8 does not print for me on Linux and *BSD, but
    on all systems Emacs will print it plus many more that
    does not show up on xterm and other terms.

    Thanks.

    --
    csh(1) - "An elegant shell, for a more... civilized age."
    - Paraphrasing Star Wars

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to Richard Harnden on Fri Dec 20 20:50:04 2024
    On Fri, 20 Dec 2024 13:55:18 +0000, Richard Harnden wrote:

    Is there anyway I can tell whether a particular uft8 code-point is
    actually implemented in my terminal's current font?

    You need some utility to dump out the font’s character-mapping table.

    E.g. I wrote a Python script called “code_coverage” here <https://gitlab.com/ldo/python_freetype_examples/>, which will list
    the code blocks defined for any specified font.

    In this repo <https://gitlab.com/ldo/python_fontconfig_examples/>,
    there is a tool called “coverage_list”. This will scan all the fonts
    that fontconfig on your system knows about, to find those that cover a
    given code block.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)