Fix font.Width function for RTL and update actualBoundingBox
The current implementation of font.Width has a problem with RTL text with spaces. Additionally, this fix allows to update canvas textMetrics actualBoundingBox which should return the minimum bounding box that covers all strokes/ink. Bug:277215 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: If8815d640836d334381072b385d7fa8474a6ec45 Reviewed-on: https://chromium-review.googlesource.com/1179244Reviewed-by:Fernando Serboncini <fserb@chromium.org> Commit-Queue: David Quiroz Marin <davidqu@chromium.org> Cr-Commit-Position: refs/heads/master@{#585850}
Showing
Please register or sign in to comment