Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 552026 Details for
Bug 669034
www-client/chromium-70.0.3538.67 with media-libs/harfbuzz-2.0.0 - error: no matching function for call to 'hb_font_funcs_set_glyph_h_advances_func'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to enable chromium with harfbuzz 2.0
chromium-70.0.3538.67-fix-harfbuzz-2.0.patch (text/plain), 3.99 KB, created by
Alexandre Ferreira
on 2018-10-21 02:40:46 UTC
(
hide
)
Description:
Patch to enable chromium with harfbuzz 2.0
Filename:
MIME Type:
Creator:
Alexandre Ferreira
Created:
2018-10-21 02:40:46 UTC
Size:
3.99 KB
patch
obsolete
>--- chromium-70.0.3538.67/third_party/blink/renderer/platform/fonts/shaping/harfbuzz_face.cc.old 2018-10-19 22:51:37.078132988 -0500 >+++ chromium-70.0.3538.67/third_party/blink/renderer/platform/fonts/shaping/harfbuzz_face.cc 2018-10-19 22:54:25.102135682 -0500 >@@ -136,13 +136,13 @@ > } > > static void HarfBuzzGetGlyphHorizontalAdvances(hb_font_t* font, >- void* font_data, >- unsigned count, >- hb_codepoint_t* first_glyph, >- unsigned int glyph_stride, >- hb_position_t* first_advance, >- unsigned int advance_stride, >- void* user_data) { >+ void* font_data, >+ unsigned int count, >+ const hb_codepoint_t *first_glyph, >+ unsigned glyph_stride, >+ hb_position_t *first_advance, >+ unsigned advance_stride, >+ void *user_data) { > HarfBuzzFontData* hb_font_data = > reinterpret_cast<HarfBuzzFontData*>(font_data); > SkiaTextMetrics(&hb_font_data->paint_) >--- chromium-70.0.3538.67/third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.cc.old 2018-10-19 23:07:39.958148426 -0500 >+++ chromium-70.0.3538.67/third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.cc 2018-10-19 23:08:02.626148790 -0500 >@@ -38,8 +38,8 @@ > *width = SkiaScalarToHarfBuzzPosition(sk_width); > } > >-void SkiaTextMetrics::GetGlyphWidthForHarfBuzz(unsigned count, >- hb_codepoint_t* glyphs, >+void SkiaTextMetrics::GetGlyphWidthForHarfBuzz(unsigned int count, >+ const hb_codepoint_t* glyphs, > unsigned glyph_stride, > hb_position_t* advances, > unsigned advance_stride) { >--- chromium-70.0.3538.67/third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.h.old 2018-10-19 23:10:14.242150900 -0500 >+++ chromium-70.0.3538.67/third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.h 2018-10-19 23:10:37.918151280 -0500 >@@ -18,8 +18,8 @@ > SkiaTextMetrics(const SkPaint*); > > void GetGlyphWidthForHarfBuzz(hb_codepoint_t, hb_position_t* width); >- void GetGlyphWidthForHarfBuzz(unsigned count, >- hb_codepoint_t* first_glyph, >+ void GetGlyphWidthForHarfBuzz(unsigned int count, >+ const hb_codepoint_t* first_glyph, > unsigned glyph_stride, > hb_position_t* first_advance, > unsigned advance_stride); >--- chromium-70.0.3538.67/third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.cc.old 2018-10-20 12:51:35.706500856 -0500 >+++ chromium-70.0.3538.67/third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.cc 2018-10-20 14:47:09.544223999 -0500 >@@ -18,6 +18,11 @@ > return reinterpret_cast<T*>(reinterpret_cast<uint8_t*>(p) + byte_size); > } > >+template <class T> >+T* advance_by_byte_size_const(T* p, unsigned byte_size) { >+ return reinterpret_cast<T*>(reinterpret_cast<const uint8_t*>(p) + byte_size); >+} >+ > } // namespace > > SkiaTextMetrics::SkiaTextMetrics(const SkPaint* paint) : paint_(paint) { >@@ -48,7 +53,7 @@ > // array that copy them to a regular array. > Vector<Glyph, 256> glyph_array(count); > for (unsigned i = 0; i < count; >- i++, glyphs = advance_by_byte_size(glyphs, glyph_stride)) { >+ i++, glyphs = advance_by_byte_size_const(glyphs, glyph_stride)) { > glyph_array[i] = *glyphs; > } > Vector<SkScalar, 256> sk_width_array(count);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 669034
:
552026
|
552028
|
552096