Method and apparatus for estimating the size of rendered text
Abstract
A method of fitting text comprising characters belonging to a character set into a text area wherein the text is rendered in a font and at a font size estimates a total width of the text based on at least a representative width associated with the character set, font and font size, identifies a horizontal truncation boundary based on at least the estimated width and the width of the text area, identifies a vertical truncation boundary based on at least the estimated width, text area, horizontal truncation boundary, and a representative height associated with the character set, font and font size, wraps the text at the horizontal truncation boundary, and truncates the text at the vertical truncation boundary.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 8.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of determining a representative height and width of a character set at a certain font and font size, said method comprising: calculating, over the character set, a mean width and a mean height of the character set; calculating, over the character set, the standard deviation of the width and the standard deviation of the height of the character set; for the representative height, combining the mean height and the standard deviation of the height; for the representative width, combining the mean width and the standard deviation of the width; storing the representative height and width t
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗