chromium/third_party/pdfium/core/fxge/freetype/fx_freetype.h

// Copyright 2014 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#ifndef CORE_FXGE_FREETYPE_FX_FREETYPE_H_
#define CORE_FXGE_FREETYPE_FX_FREETYPE_H_

#include <ft2build.h>

#include <memory>

#include "core/fxcrt/span.h"

#include FT_FREETYPE_H
#include FT_GLYPH_H
#include FT_LCD_FILTER_H
#include FT_MULTIPLE_MASTERS_H
#include FT_OUTLINE_H
#include FT_TRUETYPE_TABLES_H

FXFT_LibraryRec;
FXFT_FaceRec;
FXFT_StreamRec;

struct FXFTFaceRecDeleter {};

struct FXFTLibraryRecDeleter {};

struct FXFTMMVarDeleter {};

ScopedFXFTFaceRec;
ScopedFXFTLibraryRec;

class ScopedFXFTMMVar {};

#define FXFT_Get_Glyph_HoriBearingX(face)
#define FXFT_Get_Glyph_HoriBearingY(face)
#define FXFT_Get_Glyph_Width(face)
#define FXFT_Get_Glyph_Height(face)
#define FXFT_Get_Glyph_HoriAdvance(face)

int FXFT_unicode_from_adobe_name(const char* glyph_name);
void FXFT_adobe_name_from_unicode(pdfium::span<char> name_buf, wchar_t unicode);

#endif  // CORE_FXGE_FREETYPE_FX_FREETYPE_H_