mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
FontEditor: Convert String::format() => String::formatted()
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 19:15:39 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3a891abc376
@@ -89,8 +89,8 @@ void GlyphEditorWidget::copy_glyph()
|
||||
|
||||
HashMap<String, String> metadata;
|
||||
metadata.set("char", glyph_builder.to_string());
|
||||
metadata.set("width", String::format("%d", bitmap.width()));
|
||||
metadata.set("height", String::format("%d", bitmap.height()));
|
||||
metadata.set("width", String::number(bitmap.width()));
|
||||
metadata.set("height", String::number(bitmap.height()));
|
||||
|
||||
auto data = ByteBuffer::copy(&bits[0], bitmap.width() * bitmap.height());
|
||||
GUI::Clipboard::the().set_data(data, "glyph/x-fonteditor", metadata);
|
||||
|
||||
Reference in New Issue
Block a user