Skip to content

Conversation

@leezer3
Copy link
Owner

@leezer3 leezer3 commented Jul 3, 2025

This PR is an experimental effort, to replace the font subsystem.
Currently fully functional, but only uses Droid Sans from the supplied TTF, and does not load user-specified fonts.

n.b. I suspect that the entire font system probably wants pulling into a separate API interface.

It's using a fork of FontStashSharp:
https://github.com/leezer3/FontStashSharp/tree/OpenBve
This and the associated dependancies are MIT licenced.

The advantage of this is to replace the last use of System.Drawing GDI+ functions, and in future allow moving to .Net core where these are not available. I think we'd essentially require a separate build for this unless a shim can somehow be inserted for the missing WinForms libraries.
There's also a (marginal at the minute) performance gain.

As a related change, we also want to consider pulling GL1.2 entirely at some stage soon.

Ref:
#1157
#979

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

Successfully merging this pull request may close these issues.

1 participant