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"); |