Age | Commit message (Collapse) | Author |
|
We were already doing the same for its getters, and this makes its
API more consistent with GlyphMapWidget.
|
|
This patch removes deprecated GML properties and manual sizing
calculations in favor of the new UIDimensions, and registers more
widgets in the FontEditor namespace to simplify widget setup.
|
|
|
|
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules
"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
|
|
GlyphEditor's relative rect is automatically set during layout.
|
|
This makes editing much easier, e.g. you don't need longer to copy
hundreds of glyphs one by one.
It has some flaws, e.g. it's not integrated with undo stack,
but we need to start with something!
|
|
|
|
And make them more self-documenting. Previously these constraints
were duplicated across multiple files.
|
|
Previously these were undescriptive globals making them a bit cryptic.
|
|
Fixes glyphs not expanding up to their maximum width if necessary
when pasting larger glyphs into smaller ones.
|
|
This will let us more easily organize and assign shortcuts to new
modes and transformations as they are built, and it generally looks
more polished as a uniform interface. Also adds a counterclockwise
option to the rotate action, moves Copy as Character to the edit
menu as it doesn't directly impact GlyphEditor, and makes the paint
and move modes exclusive checkables to make the editor's state more
visually obvious.
|
|
In particular, we sanity-check the received width, height, and buffer
size, before allocating.
|
|
|
|
This avoids data race issues and saves three out of four synchronous
requests to the ClipboardServer.
|
|
For an empty glyph (all pixels initially clear), this makes no
difference. However, if the glyph for the selected code point already
contains some set pixels, pasting used to "add" the set pixels, instead
of overwriting.
|
|
This is especially useful for highly symmetric scripts like this:
https://www.unicode.org/charts/PDF/U1400.pdf
|
|
|
|
This resolves #10641.
|
|
Fixes display issues in ClipboardHistory.
|
|
Previously, Delete left a glyph's width maximized.
|
|
Reduces some complexity dealing with callback effects and fixes
redundant calls to update_title and erroneously set glyph widths.
|
|
The editor now unmasks fonts on load, mapping their glyphs to the
complete unicode character set, and masks them upon saving to
reduce disk space. This is a naive approach in terms of memory
usage and can be improved but whose immediate goal is to allow
editing any glyph without concern for range allocation.
|
|
|
|
Makes undo/redo actions compatible with the updated UndoStack sans
finalization. Fixes having to click actions twice.
|
|
|
|
Fixes hidden glyphs being painted in editor and map, and '?'
subsitute glyphs being overdrawn in the system.
|
|
Fixes newline breakage in ClipboardHistory when copying LF glyphs
|
|
When toggled on, glyphs can now be repositioned within the glyph
editor by dragging the mouse
|
|
|
|
The editor can now be adjusted under the View->Scale menu
|
|
SPDX License Identifiers are a more compact / standardized
way of representing file license information.
See: https://spdx.dev/resources/use/#identifiers
This was done with the `ambr` search and replace tool.
ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
|
|
|
|
Glyphs can now be copied between editors.
|
|
Adds cut, copy, paste and delete to GlyphEditor. Font preview has
moved to a separate resizable ToolWindow. Font metadata can now be
hidden. FontEditor and glyph widgets can now be re-initialized
instead of resetting window's main widget after loading new fonts.
|
|
This adds a new structure 'Typeface' to the FontDatabase that
represents all fonts of the same family and variant.
It can contain a list of BitmapFonts with varying size but of
the same family and weight or a pointer to a single TTF font
for all sizes of this Typeface.
|
|
|