vcl/inc/impglyphitem.hxx |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

New commits:
commit 71e11268569201f5dcd4dbc1e7560c4530b077fb
Author:     Khaled Hosny <kha...@aliftype.com>
AuthorDate: Mon Oct 3 22:02:17 2022 +0200
Commit:     خالد حسني <kha...@aliftype.com>
CommitDate: Tue Oct 4 15:28:05 2022 +0200

    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: خالد حسني <kha...@aliftype.com>

diff --git a/vcl/inc/impglyphitem.hxx b/vcl/inc/impglyphitem.hxx
index 9c369c204500..87276657e641 100644
--- a/vcl/inc/impglyphitem.hxx
+++ b/vcl/inc/impglyphitem.hxx
@@ -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>
 {
 };
 };

Reply via email to