font-measurement

Calculate pixel-perfect font metrics for LVGL text layout on wearable glasses.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/Ertejeonline/er-clock --skill font-measurement
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: font-measurement
Source: https://github.com/Ertejeonline/er-clock/tree/main/resources/font-measurement
Command: npx skills add https://github.com/Ertejeonline/er-clock --skill font-measurement

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pixel-perfect font metrics to predict text layout for LVGL-rendered UIs on Even Realities G2 glasses, reducing layout guesswork.

Core Features & Use Cases

  • Pixel-accurate width measurement for single-line text
  • Accurate wrapping and height predictions for multi-line layouts
  • Truncation helpers that respect surrogate pairs and emoji

Quick Start

Measure exact text dimensions to predict LVGL-compatible layout for Even Realities G2 glasses.

Frequently Asked Questions about font-measurement

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate exact text width for LVGL UI layouts?

Calculate pixel-perfect text width for LVGL UI layouts by using font measurement functions that return exact dimensions. This enables accurate container sizing and eliminates layout guesswork for UI prototypes and production code.

How do I predict line wrapping and multi-line height in LVGL?

Predict line wrapping and multi-line height in LVGL using measurement functions that calculate accurate wrapping dimensions. These helpers return exact pixel metrics to properly size multi-line text containers.

Does font measurement work with emoji and surrogate pairs in LVGL?

Font measurement works with emoji and surrogate pairs in LVGL through truncation helpers that respect surrogate pairs. This ensures accurate text truncation behavior aligned with LVGL font metrics for complex characters.

Can I measure font metrics for wearable glasses UI designs?

Measure font metrics for wearable glasses UI designs by calculating pixel-perfect dimensions tailored for Even Realities G2 glasses. This enables accurate text layout prediction for LVGL-rendered interfaces on wearable hardware.

Why does my LVGL text layout misalign on wearable displays?

LVGL text layouts misalign on wearable displays when font metrics are estimated rather than measured precisely. Pixel-perfect font measurement eliminates this guesswork by returning exact text dimensions for accurate sizing.

What is pixel-perfect font measurement for LVGL?

Pixel-perfect font measurement for LVGL is the process of calculating exact font metrics to predict text layout dimensions. It provides functions returning text width, wrap measurements, and truncation behavior aligned with LVGL font metrics.