# facebook/TextLayoutBuilder

An Android library that allows you to build text layouts more easily.

Repository: https://github.com/facebook/TextLayoutBuilder
Canonical: https://ross.abutalabs.com/products/textlayoutbuilder
Homepage: https://facebook.github.io/TextLayoutBuilder
Language: Kotlin
License: Apache-2.0
License Family: permissive
Last push: 2026-08-02T15:30:56+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 8, longevity 100
- inputs: {"age_days": 3592, "days_push": 31, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1472, forks 133 (observed 2026-08-28T04:04:49.462832+00:00)

## What it is
An Android library by Facebook that simplifies building android.text.Layout objects using a builder pattern. It adds layout caching for commonly used strings and FreeType glyph warming to improve text rendering performance.

## Use cases
- build StaticLayout instances without boilerplate
- cache text layouts for frequently rendered strings
- speed up text rendering by warming the FreeType glyph cache
- reuse a builder to create similarly styled text layouts
- load text style properties from XML style resources
- draw custom text in a custom View's onDraw

## When to choose
- you render text with custom Layouts in custom views on Android
- you need to reduce allocations from repeatedly building identical text layouts
- you want TextView-like configuration for StaticLayout construction

## When to avoid
- you just display text in standard TextViews or AppCompat widgets
- your project targets platforms other than Android
- you need a maintained library with active community support

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, developer-tools
- domain: mobile-development, android-tools, performance
- platform: -
- tags: text-layout, builder-pattern, text-rendering, caching, freetype, kotlin, android, mobile

## Member repositories
- facebook/TextLayoutBuilder (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:49.462832+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:34:40.844333+00:00, confidence not recorded.
  - readme: https://github.com/facebook/TextLayoutBuilder (fetched 2026-08-28T04:04:49.462832+00:00, sha de85490b11c5)
  - homepage: https://facebook.github.io/TextLayoutBuilder (fetched 2026-08-29T11:42:17.666307+00:00, sha 53e3d5a50f42)
- Data as of 2026-08-30T08:39:29.467469+00:00.
