mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
icc: Print TextTagData contents
This commit is contained in:
parent
ec7a2058a2
commit
3bc70d7aa5
Notes:
sideshowbarker
2024-07-18 03:20:18 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/3bc70d7aa5 Pull-request: https://github.com/SerenityOS/serenity/pull/17126
1 changed files with 4 additions and 0 deletions
|
@ -93,6 +93,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
outln("tags:");
|
||||
profile->for_each_tag([](auto tag_signature, auto tag_data) {
|
||||
outln("{}: {}, offset {}, size {}", tag_signature, tag_data->type(), tag_data->offset(), tag_data->size());
|
||||
|
||||
if (tag_data->type() == Gfx::ICC::TextTagData::Type) {
|
||||
outln(" text: \"{}\"", static_cast<Gfx::ICC::TextTagData&>(*tag_data).text());
|
||||
}
|
||||
});
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue