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

Unified Diff: ui/gfx/win/direct_write.cc

Issue 796643004: Experimental change: Remove DirectWrite 1750 font limit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modified data file version in DirectWrite unittest. Created 6 years 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
« no previous file with comments | « content/test/data/font/dwrite_font_cache_corrupt.dat ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/win/direct_write.cc
diff --git a/ui/gfx/win/direct_write.cc b/ui/gfx/win/direct_write.cc
index 207b2c165b542c7811512add11e6e93d759403e3..d1d788d08cf0c75757849b4306517f4fa2246542 100644
--- a/ui/gfx/win/direct_write.cc
+++ b/ui/gfx/win/direct_write.cc
@@ -45,20 +45,6 @@ bool ShouldUseDirectWrite() {
if (gfx::GetDPIScale() > 1.0f)
return true;
- // We have logic in renderer_font_platform_win.cc for falling back to safe
- // font list if machine has more than 1750 fonts installed. Users have
- // complained about this as safe font list is usually not sufficient.
- // We now disable direct write (gdi) if we encounter more number
- // of fonts than a threshold (currently 1750).
- // Refer: crbug.com/421305
- const wchar_t kWindowsFontsRegistryKey[] =
- L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts";
- base::win::RegistryValueIterator reg_iterator(HKEY_LOCAL_MACHINE,
- kWindowsFontsRegistryKey);
- const DWORD kMaxAllowedFontsBeforeFallbackToGDI = 1750;
- if (reg_iterator.ValueCount() >= kMaxAllowedFontsBeforeFallbackToGDI)
- return false;
-
// Otherwise, check the field trial.
const std::string group_name =
base::FieldTrialList::FindFullName("DirectWrite");
« no previous file with comments | « content/test/data/font/dwrite_font_cache_corrupt.dat ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698