mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
Documentation: Update glyph/x-fonteditor format description
This commit is contained in:
parent
310fdd87d1
commit
b3e47f0bd5
Notes:
sideshowbarker
2024-07-17 21:23:32 +09:00
Author: https://github.com/sppmacd Commit: https://github.com/SerenityOS/serenity/commit/b3e47f0bd50 Pull-request: https://github.com/SerenityOS/serenity/pull/11621
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user