tyoma / agge

Anti-Grain Evolution. 2D graphics engine for Speed and Quality in C++.
MIT License
117 stars 17 forks source link

sample/text: font change lead to assert or exception #10

Closed DaMilyutin closed 1 year ago

DaMilyutin commented 1 year ago

In here (this works) image

But changing font to ex. "Consolas" (I have it on my system) leads to this: image

DaMilyutin commented 1 year ago

text-gdi works image

DaMilyutin commented 1 year ago

what samples/text assertion says: image

DaMilyutin commented 1 year ago

Ops. My bad. Arial was preinstalled as the only asset. It was the intent.

tyoma commented 1 year ago

Hey @DaMilyutin! Right on - to see font mapping in action you may check out samples in https://github.com/tyoma/wpl - that's a MV-controls library with a freetype font loader (you'll need CMake/conan for build).