summaryrefslogtreecommitdiffstats
path: root/sample
Commit message (Collapse)AuthorAgeFilesLines
* Move Bitmap to a different namespaceJohn Reck2015-04-271-5/+3
| | | | | | | namespace naming collision. Move minikin's Bitmap out of android:: and into minikin:: Change-Id: I5ae3925f81b848dc79576429ab55243b96f7fed2
* Remove hardcoded ICU include paths.Narayan Kamath2015-01-051-2/+0
| | | | | | | ICU exports them using LOCAL_EXPORT_C_INCLUDE_DIRS. bug: 18581021 Change-Id: Ia57b3b4d231966203274b0e7e7b850beb1bd11c0
* Minikin: Remove unused variables, fix init orderAndreas Gampe2014-12-031-3/+0
| | | | | | | | | For build-system CFLAGS clean-up, fix unused variables. Reorder initializer list to initialize in the order of member declarations. Change-Id: I64358b2dcf0e39d0f4e18fdc3473de867f84fcba
* Move frameworks/minikin over to libc++.Dan Albert2014-11-111-4/+0
| | | | | Bug: 15193147 Change-Id: I5e15c95415c39515340e2663acd5fd26666db720
* Fix examples buildBehdad Esfahbod2014-07-292-3/+10
| | | | | | Was broken after recent CSS removal. Change-Id: I160fbc73286b21336d6f3943ff92d7d150dff74b
* Remove deprecated APIBehdad Esfahbod2014-07-242-4/+4
| | | | | | It has been unused outside minikin. Change-Id: Iaa2237767d81c77f90d0264e633375e601dd72f1
* Switch minikin to the new icu.Elliott Hughes2014-07-101-2/+2
| | | | Change-Id: I29a59edfe6102257c9f308aac1b4348ef7a18db7
* setConfig is deprecatedMike Reed2014-07-071-4/+3
| | | | Change-Id: Iffad3ef724b565d5d8fed17722630fd74cda9234
* Caching for layouts and harfbuzz facesRaph Levien2014-05-271-1/+1
| | | | | | | | | | | | | | | | | This patch adds caching for both layouts and for HarfBuzz face objects. The granularity of the cache for layouts is words, so it splits the input string at word boundaries (using a heuristic). There are is also some refactoring to reduce the amount of allocation and copying, and movement towards properly supporting contexts. The size of the caches is a fixed number of entries; thus, it is possible to consume a large amount of memory by filling the cache with lots of large strings. This should be refined towards a scheme that bounds the total memory used by the cache. This patch fixes bug 15237293 "Regression: Measure performance is significantly slower with minikin". Change-Id: Ie8176857e2d78656ce5479a7c04969819ef2718d
* Remove references to SkFloatToScalar.Leon Scroggins III2014-05-151-2/+2
| | | | | | | | The macro has been deprecated, now that SkScalar is never fixed point. Fixes minikin build. Change-Id: I02838a7fa167c5cf58ad225f3f2f52659495492c
* Fix build breakage in sample codeRaph Levien2014-05-142-9/+29
| | | | | | | This updates the Skia sample implementation to implement GetBounds, but the FreeType implementation is NYI (to be fixed in future commit). Change-Id: I24eda14d5fb11c2a1e81394ad8c779de3292dd79
* A basket of features: itemization, bounds, refcountRaph Levien2014-05-124-3/+275
| | | | | | | | | | | | | | | This patch improves script run itemization and also exposes metrics and bounds for layouts. In addition, there is a fair amount of internal cleanup, including ref counting, and making the MinikinFont abstraction strong enough to support both FreeType and Skia implementations. There is also a sample implementation using Skia, in the sample directory. As part of its functionality, his patch measures the bounds of the layout and gives access through Layout::GetBounds(). The corresponding method is not implemented in the FreeType-only implementation of MinikinFont, so that will probably have to be fixed. Change-Id: Ib1a3fe9d7c90519ac651fb4aa957848e4bb758ec
* Use shared ft2 lib, deal with libpng/zlib depsVictoria Lease2013-06-271-2/+5
| | | | | Bug: 9603326 Change-Id: I7df1f68fa3a44b37b1b279387f4ddfe942928bb0
* Introduce MinikinFont abstractionRaph Levien2013-06-141-6/+9
| | | | | | | | | | | This commit removes the direct dependency on FreeType and replaces it with a MinikinFont abstraction, which is designed to support both FreeType and Skia fonts (and possibly others in the future). Also adds a "total advance" to the Layout, with an API for retrieving it. Change-Id: If20f92db9a43fd15b0fe9794b761ba00fb21338c
* Initial commit of Minikin libraryRaph Levien2013-04-252-0/+142
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