mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:37:45 +00:00
LibGfx: Call dbgln() on unimplemented cmap format
This commit is contained in:
parent
0f0c9f910a
commit
864172084b
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <AK/Format.h>
|
||||
#include <AK/Optional.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:
|
||||
return glyph_id_for_code_point_table_12(code_point);
|
||||
default:
|
||||
dbgln("OpenType Cmap: Unimplemented format {}", (int)format());
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue