chaoticbob / Cinder-SdfText

libcinder.org
SIL Open Font License 1.1
40 stars 20 forks source link

Crash if glyph is missing. #5

Open paulhoux opened 8 years ago

paulhoux commented 8 years ago

I tried to render Japanese text using Arial, but the application crashed here and here.

It could not find the glyph index, so iter becomes end. To me, it looks like missing glyphs are not automatically added to the texture yet.

chaoticbob commented 8 years ago

I added a skip for now: https://github.com/chaoticbob/Cinder-SdfText/commit/bdf46436fbfa12c7d07b5684818112849db8e2f5.

I'll add some logic to add missing glyphs soon.