drawPosText (char [] text, index int, int count, float [] pos, Paint paint) Draw text in an array, each character specified . pos.
Does anyone know exactly where drawPosText considers "origin" as you specify "origin" as coordinate pairs; that is, this is the bottom left symbol, center, what?
Just like drawPosText calculates the height of a character when it draws?
Ah, I spent a piece yesterday, playing with centering some text!
, . , , - .
Math.abs(p.ascent()) + p.descent()
p - Paint.
Source: https://habr.com/ru/post/1737009/More articles:Get content from an HTML element in Rails - javascriptRegular expression to replace quotes in HTML tags only - c #Matching pair open / close symbols in regular expressions - regexReserved memory addresses? - memory-managementShow yes / no in bool gridview column bound to data source in Winforms? - vb.netOCR: how to increase accuracy - existing libraries for removing non-text "furniture", forms, etc., to avoid confusion with OCR? - ocrImage analysis and conversion based on this analysis to improve OCR results - image-processingReading characters from the screen - c #Convert int to byte array BCD - c #Remove QuickTime control correctly - c #All Articles