blob: 02e81328719ea801b287f0c605c5a49925ee3ea3 [file] [log] [blame]
// Copyright 2013 The Flutter 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_IMPELLER_TYPOGRAPHER_BACKENDS_STB_TYPOGRAPHER_CONTEXT_STB_H_
#define FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_STB_TYPOGRAPHER_CONTEXT_STB_H_
#include "impeller/typographer/typographer_context.h"
#include <memory>
#include "flutter/fml/macros.h"
namespace impeller {
class TypographerContextSTB : public TypographerContext {
public:
static std::unique_ptr<TypographerContext> Make();
TypographerContextSTB();
~TypographerContextSTB() override;
// |TypographerContext|
std::shared_ptr<GlyphAtlasContext> CreateGlyphAtlasContext() const override;
// |TypographerContext|
std::shared_ptr<GlyphAtlas> CreateGlyphAtlas(
Context& context,
GlyphAtlas::Type type,
std::shared_ptr<GlyphAtlasContext> atlas_context,
const FontGlyphMap& font_glyph_map) const override;
private:
TypographerContextSTB(const TypographerContextSTB&) = delete;
TypographerContextSTB& operator=(const TypographerContextSTB&) = delete;
};
} // namespace impeller
#endif // FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_STB_TYPOGRAPHER_CONTEXT_STB_H_