You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, the only way to set a font size is to provide your own TTF files and create a settings file referring to them. Then you can use the command-line -C parameter to load the config file, and then Frotz will load the TTF files.
I tried searching the code of this repository, and, I'll be honest, I have no idea how it works! I can see how I could pass TTF files and a settings file into preamble.mjs, but I can't see how frotz itself gets launched, or where I'd add command-line arguments.
If you can give me a hint as to how to pass a command-line argument, I'd be willing to try filing a PR to pass frotz a scaling factor.
The CLI arguments is just the Module.arguments at the top of preamble.js. Frotz launches itself when the file is loaded.
Don't know if you noticed, but I had to add quite a few hacks to get better pixel densities on mobile, which are in the replaced functions in frotz-library.js. It will probably be hard to get further high-pixel stuff working, unless we just make it do a flat 2x or 3x for all browsers.
Apropos https://gitlab.com/DavidGriffith/frotz/-/issues/222
SDL Frotz doesn't yet support higher pixel densities, but hopefully some day it will, and, when it does, Infocom Frotz should do the same.
The text was updated successfully, but these errors were encountered: