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

Provide reference .rtf files + fonts #7

Open
madebr opened this issue Jul 17, 2023 · 3 comments
Open

Provide reference .rtf files + fonts #7

madebr opened this issue Jul 17, 2023 · 3 comments

Comments

@madebr
Copy link
Contributor

madebr commented Jul 17, 2023

While porting SDL_rtf to SDL3, it would have been useful to have reference .rtf files and fonts available in this repository.

If copyright prevents this, perhaps easy instruction about how to obtain these would be useful as well.
But some googling around showed me there do exist fonts in the public domain.

@sezero
Copy link
Contributor

sezero commented Jul 17, 2023

There is at least this rtf file from SDL-1.2 tree, which should really be free: https://github.com/libsdl-org/SDL-1.2/blob/main/Xcode/SDL/pkg-support/resources/License.rtf

@sezero
Copy link
Contributor

sezero commented Jul 17, 2023

Also, linuxdoc-tools can output to rtf using sgml2rtf

@madebr
Copy link
Contributor Author

madebr commented Jul 17, 2023

The thing is showrtf expects the user to pass a few fonts:

SDL_Log("Usage: %s -fdefault font.ttf [-froman font.ttf] [-fswiss font.ttf] [-fmodern font.ttf] [-fscript font.ttf] [-fdecor font.ttf] [-ftech font.ttf] file.rtf\n", argv0);

Perhaps we need to add a font enumeration api to SDL_ttf instead (using Fontconfig on Linux)

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

No branches or pull requests

2 participants