Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(764)

Unified Diff: third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp

Issue 2386333002: reflow comments in platform/fonts (Closed)
Patch Set: comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp b/third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp
index 30113fc9fe25fea06a9bb5ac6a9b6b1a3baeeefd..5810e1e61f6a39728586c4893831f8a9d7690a9b 100644
--- a/third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp
+++ b/third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp
@@ -58,8 +58,9 @@ int32_t FontCache::s_statusFontHeight = 0;
namespace {
int32_t ensureMinimumFontHeightIfNeeded(int32_t fontHeight) {
- // Adjustment for codepage 936 to make the fonts more legible in Simplified Chinese.
- // Please refer to LayoutThemeFontProviderWin.cpp for more information.
+ // Adjustment for codepage 936 to make the fonts more legible in Simplified
+ // Chinese. Please refer to LayoutThemeFontProviderWin.cpp for more
+ // information.
return (fontHeight < 12.0f) && (GetACP() == 936) ? 12.0f : fontHeight;
}
@@ -161,7 +162,8 @@ PassRefPtr<SimpleFontData> FontCache::fallbackFontForCharacter(
// Make sure that all of them are lowercased.
const static wchar_t* const cjkFonts[] = {
L"arial unicode ms", L"ms pgothic", L"simsun", L"gulim", L"pmingliu",
- L"wenquanyi zen hei", // Partial CJK Ext. A coverage but more widely known to Chinese users.
+ L"wenquanyi zen hei", // Partial CJK Ext. A coverage but more widely
+ // known to Chinese users.
L"ar pl shanheisun uni", L"ar pl zenkai uni",
L"han nom a", // Complete CJK Ext. A coverage.
L"code2000" // Complete CJK Ext. A coverage.
@@ -239,9 +241,11 @@ static bool typefacesMatchesFamily(const SkTypeface* tf,
}
actualFamilies->unref();
- // getFamilyName may return a name not returned by the createFamilyNameIterator.
+ // getFamilyName may return a name not returned by the
+ // createFamilyNameIterator.
// Specifically in cases where Windows substitutes the font based on the
- // HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes registry entries.
+ // HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes registry
+ // entries.
if (!matchesRequestedFamily) {
SkString familyName;
tf->getFamilyName(&familyName);

Powered by Google App Engine
This is Rietveld 408576698