enthought / enthought/pyface

Unified font metrics utilities

Open
#716 0 comments 0 reactions 0 assignees View on GitHub
difficulty: intermediate Feature toolkit: Qt toolkit: Wx type: enhancement
Dominant language
Python
Stars
115
Forks
54
PR merge metrics
No merged PRs in 30d

Description

In a few places Pyface needs to query font metrics for sizes (how big is this text when rendered, so I can size this widget? etc.). There is currently no unified way of doing this, and this is exacerbated by Qt 5.11+ having a new API for some of these metrics.

There should be a nice way of asking "how big is this piece of text in this font"?

See also Enable's font metric objects.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.