Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User customizable BITMAPS #55

Open
AlanDeSmet opened this issue Mar 25, 2019 · 1 comment
Open

User customizable BITMAPS #55

AlanDeSmet opened this issue Mar 25, 2019 · 1 comment
Labels
feature request New feature or request

Comments

@AlanDeSmet
Copy link
Contributor

Users may have a variety of reasons for wanting a different set of BITMAPS:

  • User wants to use new characters not yet known to TIV. (I'm really looking forward to the Teletext block mosaic and smooth mosaic terminal graphics characters)
  • User is using a font that doesn't yet support some of the characters TIV uses.
  • User is using a font with some unusually shaped characters, such that different bit patterns work better.

My broad proposal is to allow the user to create a configuration file with an alternative set of characters and bit maps. Probably available at a well known location ($XDG_DATA_HOME/tivrc falling back to $HOME/.tivrc?), perhaps overridable via environment variable or command line?

For simplicity, I don't propose doing anything clever like trying to merge user configuration with the built-in configuration; it's all or nothing.

A command line option to create a default configuration file from the built-in configuration is probably necessary in practice.

In the longer term, tools to help create the file would be useful, but are probably best left to a later. Possibilities I see:

  • Automatically probing which characters exist for a given font. Tools like fc-list 'FONTNAME:style=Regular' charset, fc-list -v 'FONTNAME:style=Regular', or hb-shape PATH/TO/FONT '┣'
  • Given enough information about a terminal (at the very least, how to find the character at 0,0), an automatic set of bit patterns could be generated.
@stefanhaustein
Copy link
Owner

SGTM, any config file format suggestions? Just a list of pair of uint_32 per line (codepoint and bitmap)?

@stefanhaustein stefanhaustein added the feature request New feature or request label Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants