flowkey / UIKit-cross-platform

Cross-platform Swift implementation of UIKit, mostly for Android
MIT License
597 stars 40 forks source link

Implement text sizing in FontRenderer, allow changing system font #207

Closed ephemer closed 6 years ago

ephemer commented 6 years ago

Fixes #197 (if you choose a font that can render the characters)

Type of change: feature

Motivation

We need to slowly implement font sizing and rendering in our own code so we can size/render attributed strings. We also are not sure we want to keep using SDL forever, so it'd be good to have a direct dependency on FreeType instead of via an intermediate (i.e. SDL_ttf).

Testing Details

This works the same as the previous version on Mac.

Please check if the PR fulfills these requirements