Avoid potential HarfBuzz asserts
We need to update the buffer content type ourselves since we are now using the low lever shape plan API that does not do this. Change-Id: I043d15731cf206b142c3153896e194a822a70ffb
This commit is contained in:
@@ -489,6 +489,7 @@ bool CommonSalLayout::LayoutText(ImplLayoutArgs& rArgs)
|
|||||||
bool ok = hb_shape_plan_execute(pHbPlan, mpHbFont, pHbBuffer, maFeatures.data(), maFeatures.size());
|
bool ok = hb_shape_plan_execute(pHbPlan, mpHbFont, pHbBuffer, maFeatures.data(), maFeatures.size());
|
||||||
assert(ok);
|
assert(ok);
|
||||||
(void) ok;
|
(void) ok;
|
||||||
|
hb_buffer_set_content_type(pHbBuffer, HB_BUFFER_CONTENT_TYPE_GLYPHS);
|
||||||
SAL_INFO("vcl.harfbuzz", hb_shape_plan_get_shaper(pHbPlan) << " shaper used for " << mrFontSelData.GetFamilyName());
|
SAL_INFO("vcl.harfbuzz", hb_shape_plan_get_shaper(pHbPlan) << " shaper used for " << mrFontSelData.GetFamilyName());
|
||||||
|
|
||||||
int nRunGlyphCount = hb_buffer_get_length(pHbBuffer);
|
int nRunGlyphCount = hb_buffer_get_length(pHbBuffer);
|
||||||
|
Reference in New Issue
Block a user