1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

graphite: Update to upstream commit 80c52493e

80c52493ef

Includes a fix for inaccurate slice range calculation for bases with diacritics.

Also removes unnecessary ChangeLog, and updated unrelated vhacd commit to match
currently used one.
This commit is contained in:
Rémi Verschelde
2021-11-19 12:22:48 +01:00
parent b452005c5c
commit d1360895ee
3 changed files with 11 additions and 244 deletions

View File

@@ -1056,12 +1056,17 @@ float Pass::resolveKern(Segment *seg, Slot *slotFix, GR_MAYBE_UNUSED Slot *start
ymin = min(by + bbb.bl.y, ymin);
for (nbor = slotFix->next(); nbor; nbor = nbor->next())
{
if (nbor->isChildOf(base))
continue;
if (!gc.check(nbor->gid()))
return 0.;
const Rect &bb = seg->theGlyphBBoxTemporary(nbor->gid());
SlotCollision *cNbor = seg->collisionInfo(nbor);
const float nby = nbor->origin().y + cNbor->shift().y;
if (nbor->isChildOf(base))
{
ymax = max(nby + bb.tr.y, ymax);
ymin = min(nby + bb.bl.y, ymin);
continue;
}
if ((bb.bl.y == 0.f && bb.tr.y == 0.f) || (cNbor->flags() & SlotCollision::COLL_ISSPACE))
{
if (m_kernColls == InWord)