vcl/source/font/LogicalFontInstance.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit e92d0ec198bc81858604dca2b73ead82bfac6cec
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Nov 25 08:51:16 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Fri Nov 25 13:37:06 2022 +0100

    hb_draw_funcs_t needs harfbuzz >= 4.0.0
    
    Change-Id: Ic84fcee9034865de42f1018d2358c19c5bd9b463
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143276
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/source/font/LogicalFontInstance.cxx 
b/vcl/source/font/LogicalFontInstance.cxx
index 6923ce6cd87a..277edec2d96c 100644
--- a/vcl/source/font/LogicalFontInstance.cxx
+++ b/vcl/source/font/LogicalFontInstance.cxx
@@ -259,6 +259,7 @@ bool LogicalFontInstance::NeedsArtificialItalic() const
     return m_aFontSelData.GetItalic() != ITALIC_NONE && 
m_pFontFace->GetItalic() == ITALIC_NONE;
 }
 
+#if HB_VERSION_ATLEAST(4, 0, 0)
 namespace
 {
 void move_to_func(hb_draw_funcs_t*, void* /*pDrawData*/, hb_draw_state_t*, 
float to_x, float to_y,
@@ -293,6 +294,7 @@ void close_path_func(hb_draw_funcs_t*, void* pDrawData, 
hb_draw_state_t*, void*
     pPoly->clear();
 }
 }
+#endif
 
 bool LogicalFontInstance::GetGlyphOutlineUntransformed(sal_GlyphId nGlyph,
                                                        
basegfx::B2DPolyPolygon& rPolyPoly) const

Reply via email to