SDL_rtf icon indicating copy to clipboard operation
SDL_rtf copied to clipboard

Provide reference .rtf files + fonts

Open madebr opened this issue 2 years ago • 3 comments

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.

madebr avatar Jul 17 '23 15:07 madebr

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 avatar Jul 17 '23 16:07 sezero

Also, linuxdoc-tools can output to rtf using sgml2rtf

sezero avatar Jul 17 '23 16:07 sezero

The thing is showrtf expects the user to pass a few fonts: https://github.com/libsdl-org/SDL_rtf/blob/b42410aa17e9e2b4c73532273d93906a200bd654/showrtf.c#L167

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

madebr avatar Jul 17 '23 16:07 madebr