Text Baseline with Android Canvas (hanging, ideographic)
Asked Answered
C

0

6

I'm looking for a way to implement some base line features using androids canvas. Using functions like ascent and descent of the Paint object I've managed to implement most of the base lines but I don't know how the 'hanging' and 'ideographic' base lines could be implemented.

Does anybody know a way to calculate the offset required to draw text for these base lines?

Base Lines
(source: w3schools.com)

Conductor answered 25/5, 2013 at 16:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.