mapeditor / mapeditor/tiled

Add support for fractional pixel font sizes in text shapes

Open
#3,304 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
12.9k
Forks
2k
Avg merge
4h 27m
Merged PRs (30d)
8

Description

**Is your feature request related to a problem? Please describe.**
Text shapes can only use integer values of pixels for text sizes. This makes fine-tuning text sizes impossible.

![image](https://user-images.githubusercontent.com/11306526/159095355-201e4a49-d80d-407c-920e-39131746fbe5.png)

**Describe the solution you'd like**
Enable text shapes to use fractional font sizes.

**Describe alternatives you've considered**
Sometimes this can be worked around by using a larger size for tiles, but depending on the application this isn't always possible.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the text-shape font-size handling in the Tiled repository and trace how the current integer pixel value is represented and edited. Define done as text shapes accepting and displaying fractional font sizes without losing the value; check for related tests or add coverage if the project’s existing test structure supports it.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.