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

TGI Vector Font Issues - missing documentation, missing default font, missing example #2306

Open
mrdudz opened this issue Dec 13, 2023 · 2 comments

Comments

@mrdudz
Copy link
Contributor

mrdudz commented Dec 13, 2023

Someone approached me on IRC and asked about how to use text output in TGI. Should be easy enough - i thought. Until i tried to add some simple text output to the existing TGI sample. Apparently not only several important things are missing - but there also seem to be different ideas of how it even works at all (unless i have misunderstood something):

  • There is no font in the tree at all. (the lynx port is apparently an exception, a font is hardcoded into the driver)
  • The docs hide quite well how to create such font, chrcvt65 is not mentioned on the TGI page at all. If i didnt try to find some working code with google, i would have not noticed it even exists.
  • The format of the font is not documented anywhere. And despite it being called "vector font" in the docs (and source/headers) the existing lynx font appears to be a bitmap font and NOT a vector font.
  • Generally the lynx implementation seems to not follow the specs, nor is documented how to create, or install a different font in TGI for the lynx.

This really needs to change :) We need at least one font that can be used as a default, and a working example. And preferably fix all the rest too :)

@mrdudz
Copy link
Contributor Author

mrdudz commented Dec 13, 2023

So, first we need some font(s) we can include - unfortunately most sources i found just contain the hand full fonts borland provided (we cant use those because of license issues). However:

http://cd.textfiles.com/aztechsg/QUIKMENU/ (Borland fonts)

https://ftp.sunet.se/mirror/archive/ftp.sunet.se/pub/simtelnet/msdos/borland/ (Bunch of tools and fonts from other sources)
https://ftp.sunet.se/mirror/archive/ftp.sunet.se/pub/simtelnet/msdos/borland/lcdfonts.zip seems to contain freeware fonts

https://moddingwiki.shikadi.net/wiki/BGI_Stroked_Font (CHR Format info)

@polluks
Copy link
Contributor

polluks commented Dec 14, 2023

Indeed, "The TGI library has two types of typography support: vector and bitmap fonts. The Lynx only has support for bitmaps and a single system supplied bitmap font. It is part of and inside the TGI driver."
https://atarilynxdeveloper.wordpress.com/page/3/
At least there's Uz's tgi-preview-0.0.1.zip :-)
By the way lcdfonts just contains digits, hence the name...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants