# Tencent/tgfx

A lightweight 2D graphics library for modern GPUs, delivering high-performance text, image, and vector rendering across major platforms.

Repository: https://github.com/Tencent/tgfx
Canonical: https://ross.abutalabs.com/products/tgfx
Homepage: https://tgfx.org
Language: C++
License: NOASSERTION
License Family: other
Topics: 2d, graphics, tgfx, rendering, gpu, filter, image, text, pdf, svg, vector, blend, path, layer
Last push: 2026-08-26T12:43:57+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 37, longevity 74
- inputs: {"age_days": 1049, "days_push": 7, "days_rel": 341, "gap_med": 39, "n_releases_24m": 6}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1574, forks 135 (observed 2026-08-28T04:05:05.812657+00:00)

## What it is
TGFX (Tencent Graphics) is a lightweight C++ 2D graphics library built for modern GPUs, providing high-performance rendering of text, images, and vector graphics. It serves as a smaller, faster alternative to Skia and supports multiple rendering backends including OpenGL, Vulkan, Metal, WebGPU, and WebGL across all major platforms.

## Use cases
- render vector graphics and text on mobile GPUs
- replace Skia with a smaller 2D rendering engine
- render images and filters in a video editing app
- draw 2D UI layers with GPU acceleration in a cross-platform app
- render SVG and PDF content on iOS and Android
- build a web-based 2D canvas renderer with WebGL or WebGPU

## When to choose
- you need a lightweight, GPU-accelerated 2D renderer across mobile, desktop, and web
- binary size matters and Skia is too heavy
- you need multiple GPU backends (OpenGL, Vulkan, Metal, WebGPU) behind one API
- you are building with PAG, Hippy, or similar Tencent ecosystems

## When to avoid
- you need CPU-only software rendering on legacy hardware
- you require Metal backend support today (still in progress)
- you need extensive documentation and a large community ecosystem
- your project is not C++ or lacks C++17 toolchain support

## Facets
- artifact type: library
- maturity: active
- function: graphics, image-processing, pdf, parser
- domain: graphics, cross-platform
- platform: windows, wasm, cpp
- tags: 2d-graphics, gpu-rendering, vector-graphics, text-rendering, skia-alternative, svg, opengl, vulkan, metal, webgpu, game-development, ios, android, macos, linux

## Member repositories
- Tencent/tgfx (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:05.812657+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-30T03:57:38.287360+00:00, confidence not recorded.
  - readme: https://github.com/Tencent/tgfx (fetched 2026-08-28T04:05:05.812657+00:00, sha 0aa6cd388b74)
  - homepage: https://tgfx.org (fetched 2026-08-29T11:27:41.406734+00:00, sha 4c769cd289dc)
  - site_page: https://tgfx.org/docs/home.html (fetched 2026-08-29T11:27:41.416224+00:00, sha c4bbac2ff51a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
