mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
e133b4fb17
* This allows the tests to add their own FLX files but still use consistent fonts. * The test fonts are only embedded on the desktop test shells. The option is not available on mobile platforms. * Right now, all fonts will resolve to the test font. If we want tests to be able to use the fonts they embed in FLX files but use the test font for platform fallbacks, we will need to add font selector fallbacks. I can do this in an another patch. So far, there are no users of this functionality.
18 lines
460 B
C++
18 lines
460 B
C++
// Copyright 2016 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef FLUTTER_RUNTIME_TEST_FONT_DATA_H_
|
|
#define FLUTTER_RUNTIME_TEST_FONT_DATA_H_
|
|
|
|
#include <memory>
|
|
#include "third_party/skia/include/core/SkStream.h"
|
|
|
|
namespace blink {
|
|
|
|
std::unique_ptr<SkStreamAsset> GetTestFontData();
|
|
|
|
} // namespace blink
|
|
|
|
#endif // FLUTTER_RUNTIME_TEST_FONT_DATA_H_
|