RFR: 8167268: StandardGlyphVector.getGlyphMetrics creates metrics with erroneous bounds for characters with no outline (e.g., the space character ' ') [v2]
Daniel Gredler
dgredler at openjdk.org
Thu Oct 16 21:17:05 UTC 2025
On Wed, 1 Oct 2025 18:41:00 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
>> Do you know when that might happen? This code gets its values (after a few layers of abstraction) from `StandardGlyphVector$GlyphStrike.getGlyphOutlineBounds(int, float, float)`, which has a similar `isEmpty` check.
>
> I am not sure if it is possible, but I would like to make sure we did not introduce any issues, since isEmpty() will skip ‘flipped’ bounds.
@mrserb Does the explanation above make sense, in that the condition to "undo" something should match the condition used to decide to do it initially?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27580#discussion_r2437483337
More information about the client-libs-dev
mailing list