[MacPorts] #71498: harfbuzz-devel 10.1.0 broken on < 10.8: error: 'kCTFontOrientationHorizontal' was not declared in this scope; did you mean 'kCTFontOrientationAttribute'?

MacPorts noreply at macports.org
Mon Dec 9 11:27:57 UTC 2024


#71498: harfbuzz-devel 10.1.0 broken on < 10.8: error:
'kCTFontOrientationHorizontal' was not declared in this scope; did you mean
'kCTFontOrientationAttribute'?
--------------------------+----------------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.10.5
 Keywords:                |       Port:  harfbuzz-devel
--------------------------+----------------------------
 {{{
 ../harfbuzz-10.1.0/src/hb-coretext-font.cc:112:21: warning: narrowing
 conversion of 'unicode' from 'hb_codepoint_t' {aka 'unsigned int'} to
 'UniChar' {aka 'short unsigned int'} [-Wnarrowing]
   112 |   UniChar ch[2] = { unicode, variation_selector };
       |                     ^~~~~~~
 ../harfbuzz-10.1.0/src/hb-coretext-font.cc:112:30: warning: narrowing
 conversion of 'variation_selector' from 'hb_codepoint_t' {aka 'unsigned
 int'} to 'UniChar' {aka 'short unsigned int'} [-Wnarrowing]
   112 |   UniChar ch[2] = { unicode, variation_selector };
       |                              ^~~~~~~~~~~~~~~~~~
 ../harfbuzz-10.1.0/src/hb-coretext-font.cc: In function 'void
 hb_coretext_get_glyph_h_advances(hb_font_t*, void*, unsigned int, const
 hb_codepoint_t*, unsigned int, hb_position_t*, unsigned int, void*)':
 ../harfbuzz-10.1.0/src/hb-coretext-font.cc:148:42: error:
 'kCTFontOrientationHorizontal' was not declared in this scope; did you
 mean 'kCTFontOrientationAttribute'?
   148 |     CTFontGetAdvancesForGlyphs (ct_font,
 kCTFontOrientationHorizontal, cg_glyph, advances, c);
       |
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
       |
 kCTFontOrientationAttribute
 ../harfbuzz-10.1.0/src/hb-coretext-font.cc: In function 'void
 hb_coretext_get_glyph_v_advances(hb_font_t*, void*, unsigned int, const
 hb_codepoint_t*, unsigned int, hb_position_t*, unsigned int, void*)':
 ../harfbuzz-10.1.0/src/hb-coretext-font.cc:182:42: error:
 'kCTFontOrientationVertical' was not declared in this scope; did you mean
 'kCTFontOrientationAttribute'?
   182 |     CTFontGetAdvancesForGlyphs (ct_font,
 kCTFontOrientationVertical, cg_glyph, advances, c);
       |
 ^~~~~~~~~~~~~~~~~~~~~~~~~~
       |
 kCTFontOrientationAttribute
 ../harfbuzz-10.1.0/src/hb-coretext-font.cc: In function 'hb_bool_t
 hb_coretext_get_glyph_extents(hb_font_t*, void*, hb_codepoint_t,
 hb_glyph_extents_t*, void*)':
 ../harfbuzz-10.1.0/src/hb-coretext-font.cc:231:25: warning: narrowing
 conversion of 'glyph' from 'hb_codepoint_t' {aka 'unsigned int'} to
 'CGGlyph' {aka 'short unsigned int'} [-Wnarrowing]
   231 |   CGGlyph glyphs[1] = { glyph };
       |                         ^~~~~
 }}}

 This will be broken on < 10.8, since `kCTFontOrientationHorizontal` and
 `kCTFontOrientationVertical` appear in 10.8.

-- 
Ticket URL: <https://trac.macports.org/ticket/71498>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list