summaryrefslogtreecommitdiffstats
path: root/libs/minikin/SparseBitSet.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Reject fonts with invalid ranges in cmapRaph Levien2016-01-071-0/+2
| | | | | | | | | | | | | A corrupt or malicious font may have a negative size in its cmap range, which in turn could lead to memory corruption. This patch detects the case and rejects the font, and also includes an assertion in the sparse bit set implementation if we missed any such case. External issue: https://code.google.com/p/android/issues/detail?id=192618 Bug: 26413177 Change-Id: Icc0c80e4ef389abba0964495b89aa0fae3e9f4b2
* Use __builtin_clzl if element is longBehdad Esfahbod2014-07-101-2/+2
| | | | Change-Id: I50a112739847fa826088854f6d172a188ff4cfb3
* Initial commit of Minikin libraryRaph Levien2013-04-251-0/+147
This is the initial draft of Minikin, a library intended to perform text layout functions. This version does basic weight selection and font runs for scripts, and also has a simple renderer for drawing into bitmaps, but is lacking measurement, line breaking, and a number of other important features. It also lacks caching and other performance refinements. Change-Id: I789a2e47d11d71202dc84b4751b51a5e2cd9c451