chenglou / chenglou/pretext

Feature suggestion: Return font size and copy text.

Open
#198 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
50.4k
Forks
2.7k
Avg merge
2h 40m
Merged PRs (30d)
69

Description

1. Although the font size is passed in using `px` units, could it also be returned as a numeric value? This would make it easier to determine the line height based on the font size.

2. I would like to implement a "select and copy" feature on canvas. This might require determining the width and coordinates of each character—is this supported?

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files or tests. Start by locating the text-measurement and layout entry points that accept font size in px, then inspect their current return values and whether character widths or coordinates are exposed. Done means the numeric font-size request and the feasibility of canvas selection and copying are addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.