提交 981ef6f4 编写于 作者: C Chinmay Garde 提交者: GitHub

Make sure to hit the test font resolver in case of empty font family name. (#3571)

上级 aa0f2c84
......@@ -28,6 +28,7 @@
#include "flutter/sky/engine/platform/fonts/FontFallbackList.h"
#include "flutter/common/settings.h"
#include "flutter/sky/engine/platform/fonts/FontCache.h"
#include "flutter/sky/engine/platform/fonts/FontDescription.h"
#include "flutter/sky/engine/platform/fonts/FontFamily.h"
......@@ -187,7 +188,7 @@ PassRefPtr<FontData> FontFallbackList::getFontData(const FontDescription& fontDe
const FontFamily* currFamily = startFamily;
while (currFamily && !result) {
familyIndex++;
if (currFamily->family().length()) {
if (currFamily->family().length() || Settings::Get().use_test_fonts) {
if (m_fontSelector)
result = m_fontSelector->getFontData(fontDescription, currFamily->family());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册