Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70a17055 authored by Romain Guy's avatar Romain Guy Committed by Android (Google) Code Review
Browse files

Merge "Fix text redering issue where the text was sometimes truncated"

parents bf02513c 251ae9a7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -266,8 +266,8 @@ public:

        jfloat totalAdvance = 0;
        for (size_t i = 0; i < count; i++) {
            // Be careful: we need to use roundf() for doing the same way as Skia is doing
            totalAdvance += outAdvances[i] = roundf(HB_FIXED_TO_FLOAT(shaperItem.advances[i]));
            // Be careful: we need to use ceilf() for doing the same way as what Skia is doing
            totalAdvance += outAdvances[i] = ceilf(HB_FIXED_TO_FLOAT(shaperItem.advances[i]));

#if DEBUG_ADVANCES
            LOGD("hb-adv = %d - rebased = %f - total = %f", shaperItem.advances[i], outAdvances[i],