Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 981ef6f

Browse files
authored
Make sure to hit the test font resolver in case of empty font family name. (#3571)
1 parent aa0f2c8 commit 981ef6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sky/engine/platform/fonts/FontFallbackList.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
#include "flutter/sky/engine/platform/fonts/FontFallbackList.h"
3030

31+
#include "flutter/common/settings.h"
3132
#include "flutter/sky/engine/platform/fonts/FontCache.h"
3233
#include "flutter/sky/engine/platform/fonts/FontDescription.h"
3334
#include "flutter/sky/engine/platform/fonts/FontFamily.h"
@@ -187,7 +188,7 @@ PassRefPtr<FontData> FontFallbackList::getFontData(const FontDescription& fontDe
187188
const FontFamily* currFamily = startFamily;
188189
while (currFamily && !result) {
189190
familyIndex++;
190-
if (currFamily->family().length()) {
191+
if (currFamily->family().length() || Settings::Get().use_test_fonts) {
191192
if (m_fontSelector)
192193
result = m_fontSelector->getFontData(fontDescription, currFamily->family());
193194

0 commit comments

Comments
 (0)