add comment

This commit is contained in:
jrkb 2023-09-21 10:11:07 +02:00
parent 4af4adb3e2
commit 1d84d62c12

View file

@ -915,6 +915,8 @@ class Font {
bufferGlyph.start = static_cast <int32_t>(bufferCurves.size()); bufferGlyph.start = static_cast <int32_t>(bufferCurves.size());
bool autoFixOutline = true; bool autoFixOutline = true;
// NOTE: this is a hack that should not be necessary if we use harfbuzz for textshaping
// and interpret font flags properly (we're attempting this, but it's not stable atm)
if(autoFixOutline){ if(autoFixOutline){
short start = 0; short start = 0;
int n_contours = face->glyph->outline.n_contours; int n_contours = face->glyph->outline.n_contours;