godot/thirdparty/graphite/src/GlyphCache.cpp

// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later
// Copyright 2012, SIL International, All rights reserved.

#include "graphite2/Font.h"

#include "inc/Main.h"
#include "inc/Face.h"     //for the tags
#include "inc/GlyphCache.h"
#include "inc/GlyphFace.h"
#include "inc/Endian.h"
#include "inc/bits.h"

usingnamespacegraphite2;

namespace
{
    // Iterator over version 1 or 2 glat entries which consist of a series of
    //    +-+-+-+-+-+-+-+-+-+-+                +-+-+-+-+-+-+-+-+-+-+-+-+
    // v1 |k|n|v1 |v2 |...|vN |     or    v2   | k | n |v1 |v2 |...|vN |
    //    +-+-+-+-+-+-+-+-+-+-+                +-+-+-+-+-+-+-+-+-+-+-+-+
    // variable length structures.

    template<typename W>
    class _glat_iterator
    {};

    glat_iterator;
    glat2_iterator;
}

const SlantBox SlantBox::empty =;


class GlyphCache::Loader
{};



GlyphCache::GlyphCache(const Face & face, const uint32 face_options)
:{}


GlyphCache::~GlyphCache()
{}

const GlyphFace *GlyphCache::glyph(unsigned short glyphid) const      //result may be changed by subsequent call with a different glyphid
{}



GlyphCache::Loader::Loader(const Face & face)
:{}

operator bool()

inline
unsigned short int GlyphCache::Loader::units_per_em() const throw()
{}

inline
unsigned short int GlyphCache::Loader::num_glyphs() const throw()
{}

inline
unsigned short int GlyphCache::Loader::num_attrs() const throw()
{}

inline
bool GlyphCache::Loader::has_boxes () const throw()
{}

const GlyphFace * GlyphCache::Loader::read_glyph(unsigned short glyphid, GlyphFace & glyph, int *numsubs) const throw()
{}

inline float scale_to(uint8 t, float zmin, float zmax)
{}

Rect readbox(Rect &b, uint8 zxmin, uint8 zymin, uint8 zxmax, uint8 zymax)
{}

GlyphBox * GlyphCache::Loader::read_box(uint16 gid, GlyphBox *curr, const GlyphFace & glyph) const throw()
{}