You've already forked godot
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:
9
thirdparty/graphite/src/Pass.cpp
vendored
9
thirdparty/graphite/src/Pass.cpp
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user