typesupply / lasermeasure

A laser measure tool.
MIT License
10 stars 1 forks source link

Memorized measurements. #12

Closed typesupply closed 2 years ago

typesupply commented 2 years ago

I want to be able to store things like stem widths in the font.lib and have a visual indication when something matches. I've built display support for this into the layers, but it needs a UI and the search needs to be put in place.

Storage

Values need to be stored as a dict with a form like this:

{
    "name" : "string",
    "width" : number, # optional
    "height" : number, # optional
}

If height is not defined, the value applies to any width. If width is not defined, the value applies to any width.

Interface

All In Font

A sheet showing a table. Something like this:

| name | width | height |
> (+/-)

=================

(Cancel)
(Apply)

Quick add

Key command for quickly storing values based on current point selection. If the width or height of the selection is 0, don't use that value by default to indicate that it is height or width only.

Reference List

When the trigger character is down, list all of the registered measurements in the top left of the editor).