1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:07:45 +00:00

LibGfx: Call dbgln() on unimplemented cmap format

This commit is contained in:
Nico Weber 2023-10-26 08:12:18 -07:00 committed by Andreas Kling
parent 0f0c9f910a
commit 864172084b

View file

@ -4,6 +4,7 @@
* SPDX-License-Identifier: BSD-2-Clause * SPDX-License-Identifier: BSD-2-Clause
*/ */
#include <AK/Format.h>
#include <AK/Optional.h> #include <AK/Optional.h>
#include <LibGfx/Font/OpenType/Cmap.h> #include <LibGfx/Font/OpenType/Cmap.h>
@ -88,6 +89,7 @@ u32 Cmap::Subtable::glyph_id_for_code_point(u32 code_point) const
case Format::SegmentedCoverage: case Format::SegmentedCoverage:
return glyph_id_for_code_point_table_12(code_point); return glyph_id_for_code_point_table_12(code_point);
default: default:
dbgln("OpenType Cmap: Unimplemented format {}", (int)format());
return 0; return 0;
} }
} }