mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:17:44 +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
|
* 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue