Bugzilla – Attachment 180037 Details for
Bug 148470
simple Chinese user interface tooltip display error on Apple M1 Macos 12
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
a debugging patch
debug.osx.glyphfallback.patch (text/plain), 1.54 KB, created by
Caolán McNamara
on 2022-05-10 10:27:03 UTC
(
hide
)
Description:
a debugging patch
Filename:
MIME Type:
Creator:
Caolán McNamara
Created:
2022-05-10 10:27:03 UTC
Size:
1.54 KB
patch
obsolete
>diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx >index 98b00b305366..266ec94f0b75 100644 >--- a/vcl/quartz/salgdi.cxx >+++ b/vcl/quartz/salgdi.cxx >@@ -82,6 +82,10 @@ bool CoreTextGlyphFallbackSubstititution::FindFontSubstitute(vcl::font::FontSele > CoreTextStyle* pStyle = static_cast<CoreTextStyle*>(pLogicalFont); > CTFontRef pFont = static_cast<CTFontRef>(CFDictionaryGetValue(pStyle->GetStyleDict(), kCTFontAttributeName)); > CFStringRef pStr = CreateCFString(rMissingChars); >+ fprintf(stderr, "searching for a font that can render: <%s> :", OUStringToOString(rMissingChars, RTL_TEXTENCODING_UTF8).getStr()); >+ for (int i = 0; i < rMissingChars.getLength(); ++i) >+ fprintf(stderr, " %x ", rMissingChars[i]); >+ fprintf(stderr, "\n"); > if (pStr) > { > CTFontRef pFallback = CTFontCreateForString(pFont, pStr, CFRangeMake(0, CFStringGetLength(pStr))); >@@ -93,6 +97,7 @@ bool CoreTextGlyphFallbackSubstititution::FindFontSubstitute(vcl::font::FontSele > FontAttributes rAttr = DevFontFromCTFontDescriptor(pDesc, nullptr); > > rPattern.maSearchName = rAttr.GetFamilyName(); >+ fprintf(stderr, "trying %s\n", rPattern.maSearchName.toUtf8().getStr()); > > rPattern.SetWeight(rAttr.GetWeight()); > rPattern.SetItalic(rAttr.GetItalic()); >@@ -105,6 +110,9 @@ bool CoreTextGlyphFallbackSubstititution::FindFontSubstitute(vcl::font::FontSele > CFRelease(pStr); > } > >+ if (!bFound) >+ fprintf(stderr, "failed to find a candidate\n"); >+ > return bFound; > } >
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 148470
:
179423
| 180037 |
180042