Sharlock93,
@Sharlock93@mastodon.gamedev.place avatar

TTF is a crazy format, but I'm very much enjoying writing the VM for it, hopefully If I make it good enough I can integrate it into stb_truetype, no more blurry text. Dear Imgui UI's should look a lot nicer if I get this done.

pervognsen,
@pervognsen@mastodon.social avatar

@Sharlock93 Isn't there already an easy way to integrate freetype?

pervognsen,
@pervognsen@mastodon.social avatar

@Sharlock93 Not that I would discourage you from the NIH route for the sake of learning but I don't see much point in going out of your way to avoid freetype if the goal is reference-quality TTF/OTF font rendering.

Sharlock93,
@Sharlock93@mastodon.gamedev.place avatar

@pervognsen oh yeah Dear Imgui already has freetype, this is my own stuff, mostly learning/how far I can take "everything from scratch" approach.

pervognsen,
@pervognsen@mastodon.social avatar

@Sharlock93 Right, I definitely support that approach in that circumstance. Incidentally, I'm surprised there aren't more abstraction libraries in the C world in this vein: https://github.com/servo/font-kit. I think all the major web browsers defer to the default font renderer for the system they are on in order to have a consistent look and feel to font rendering across apps, and it means you can depend on pre-installed DLLs/SOs.

Sharlock93,
@Sharlock93@mastodon.gamedev.place avatar

@pervognsen Interesting, I'm not sure tbh my best "guess" would be that people gave up "cross platform" libraries in C due to "maintenance" and different compiler inconsistency? not even sure I believe that fully but that is my best guess.

pervognsen,
@pervognsen@mastodon.social avatar

@Sharlock93 Yeah, dunno. I've written a simpler, more case-specific version of this kind of layer once before but the only other time I've seen a reusable portability layer in the C/C++ world is in JUCE's font rendering but JUCE is a mega-framework and the components aren't really separable: https://github.com/juce-framework/JUCE

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • mdbf
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • osvaldo12
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • InstantRegret
  • tacticalgear
  • anitta
  • ethstaker
  • provamag3
  • cisconetworking
  • tester
  • GTA5RPClips
  • cubers
  • everett
  • modclub
  • megavids
  • normalnudes
  • Leos
  • JUstTest
  • lostlight
  • All magazines