Bugzilla – Attachment 128362 Details for
Bug 103403
Harfbuzz sal common layout of Graphite fonts over the margin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to print some debug information
debug.diff (text/plain), 1.45 KB, created by
خالد حسني
on 2016-10-30 16:31:13 UTC
(
hide
)
Description:
Patch to print some debug information
Filename:
MIME Type:
Creator:
خالد حسني
Created:
2016-10-30 16:31:13 UTC
Size:
1.45 KB
patch
obsolete
>diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx >index 239486e..03d08eb 100644 >--- a/vcl/source/gdi/CommonSalLayout.cxx >+++ b/vcl/source/gdi/CommonSalLayout.cxx >@@ -496,6 +496,22 @@ bool CommonSalLayout::LayoutText(ImplLayoutArgs& rArgs) > hb_glyph_info_t *pHbGlyphInfos = hb_buffer_get_glyph_infos(pHbBuffer, nullptr); > hb_glyph_position_t *pHbPositions = hb_buffer_get_glyph_positions(pHbBuffer, nullptr); > >+ if (strcmp(hb_shape_plan_get_shaper(pHbPlan), "graphite2") == 0) >+ { >+#define NUM 200 >+ char buf[NUM]; >+ hb_buffer_serialize_glyphs(pHbBuffer, 0, std::min(2, nRunGlyphCount), >+ buf, NUM, nullptr, >+ mpHbFont, >+ HB_BUFFER_SERIALIZE_FORMAT_JSON, >+ hb_buffer_serialize_flags_t(HB_BUFFER_SERIALIZE_FLAG_DEFAULT | HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS) >+ ); >+ int nX, nY; >+ hb_font_get_scale(mpHbFont, &nX, &nY); >+ SAL_DEBUG(mrFontSelData.GetFamilyName() << "@" << nX << "x" << nY << " : " << buf); >+#undef NUM >+ } >+ > for (int i = 0; i < nRunGlyphCount; ++i) { > int32_t nGlyphIndex = pHbGlyphInfos[i].codepoint; > int32_t nCharPos = pHbGlyphInfos[i].cluster;
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 Raw
Actions:
View
Attachments on
bug 103403
:
128159
|
128161
|
128162
| 128362