From b3e47f0bd501e5cef590fdde8e3e7b3502aa0a95 Mon Sep 17 00:00:00 2001 From: Maciej Date: Wed, 5 Jan 2022 12:16:20 +0100 Subject: [PATCH] Documentation: Update glyph/x-fonteditor format description --- Documentation/FileFormats.md | 7 +++---- 1 file 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)