diff options
author | Maciej <sppmacd@pm.me> | 2022-01-05 12:16:20 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-09 00:18:46 +0100 |
commit | b3e47f0bd501e5cef590fdde8e3e7b3502aa0a95 (patch) | |
tree | 19ea2ed4b9f3bb5137972270ae27ed16c9af41a2 /Documentation | |
parent | 310fdd87d10de7b33e3fae8cf8d2c5d35a2f2449 (diff) | |
download | serenity-b3e47f0bd501e5cef590fdde8e3e7b3502aa0a95.zip |
Documentation: Update glyph/x-fonteditor format description
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/FileFormats.md | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Documentation/FileFormats.md b/Documentation/FileFormats.md index e372df296c..7f978a5b19 100644 --- a/Documentation/FileFormats.md +++ b/Documentation/FileFormats.md @@ -23,12 +23,11 @@ Various applications accept drag & drop to open files. ## glyph/x-fonteditor (Clipboard-only) -Requires the metadata-fields, `char` (usually encoded as a string of length 1: the codepoint as a character), -`width`, and `height` (encoded as a decimal number). +Requires the metadata-fields `count` (count of glyphs copied) and `first_glyph` (lowest codepoint that is copied), encoded as decimal strings. -The glyph bitmap data is encoded in width times height many bytes, either 0 (clear) or 1 (set). +The data contains codepoint (encoded as host-endian u32), width and height (as u8's) and glyph bitmap data. It is encoded in width times height many bytes, either 0 (clear) or 1 (set). -Implemented in `GlyphEditorWidget::copy_glyph` and `GlyphEditorWidget::paste_glyph`, in [`Userland/Applications/FontEditor/GlyphEditorWidget.cpp`](../Userland/Applications/FontEditor/GlyphEditorWidget.cpp). +Implemented in `FontEditor::copy_selected_glyphs` and `FontEditor::paste_glyphs`, in [`Userland/Applications/FontEditor/FontEditor.cpp`](../Userland/Applications/FontEditor/FontEditor.cpp). ## image/x-serenityos (Clipboard-only) |