dolmen / angel-PS1

Your fancy shell prompt fed by your guardian angel
https://twitter.com/nglPS1
GNU Affero General Public License v3.0
61 stars 4 forks source link

Add glyph check API #16

Closed dolmen closed 3 years ago

dolmen commented 8 years ago

The use of Unicode code points (or other glyphs) in plugins can only work properly if the plugin is able to detect if the terminal will be able to display the glyph. We should let the user tell angel-PS1 what font is used to render the terminal and add an API that plugins could use to check if a given glyph is available in the font.

Design idea:

As parsing the font file will probably rely on external tools, this feature should be optional (plugins should be able to work without it).

Useful links:

dolmen commented 8 years ago

Another useful tool: xfd (part of Xorg) http://cgit.freedesktop.org/xorg/app/xfd/tree/

dolmen commented 8 years ago

Font::TTF::Cmap should be helpful.

dolmen commented 3 years ago

Modern terminals are Unicode-aware, so I can just close this issue.