vcl: Remove holes in GlyphItemFlags and make 8-bit
Change-Id: Iab83fbacab5232d34ea422183ae4bb4944686f54 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140926 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@aliftype.com>
This commit is contained in:
@@ -29,21 +29,21 @@
|
||||
#include "font/LogicalFontInstance.hxx"
|
||||
#include "glyphid.hxx"
|
||||
|
||||
enum class GlyphItemFlags : sal_uInt16
|
||||
enum class GlyphItemFlags : sal_uInt8
|
||||
{
|
||||
NONE = 0,
|
||||
IS_IN_CLUSTER = 0x01,
|
||||
IS_RTL_GLYPH = 0x02,
|
||||
IS_VERTICAL = 0x08,
|
||||
IS_SPACING = 0x10,
|
||||
IS_DROPPED = 0x40,
|
||||
IS_CLUSTER_START = 0x80,
|
||||
IS_UNSAFE_TO_BREAK = 0x100, // HB_GLYPH_FLAG_UNSAFE_TO_BREAK from harfbuzz
|
||||
IS_SAFE_TO_INSERT_KASHIDA = 0x200 // HB_GLYPH_FLAG_SAFE_TO_INSERT_TATWEEL from harfbuzz
|
||||
IS_VERTICAL = 0x04,
|
||||
IS_SPACING = 0x08,
|
||||
IS_DROPPED = 0x10,
|
||||
IS_CLUSTER_START = 0x20,
|
||||
IS_UNSAFE_TO_BREAK = 0x40, // HB_GLYPH_FLAG_UNSAFE_TO_BREAK from harfbuzz
|
||||
IS_SAFE_TO_INSERT_KASHIDA = 0x80 // HB_GLYPH_FLAG_SAFE_TO_INSERT_TATWEEL from harfbuzz
|
||||
};
|
||||
namespace o3tl
|
||||
{
|
||||
template <> struct typed_flags<GlyphItemFlags> : is_typed_flags<GlyphItemFlags, 0x3db>
|
||||
template <> struct typed_flags<GlyphItemFlags> : is_typed_flags<GlyphItemFlags, 0xff>
|
||||
{
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user