Added Font class (+ FreeType loader)

Former-commit-id: 1811304cd0efe9a86cbae83faaf4c39d9fae248f
This commit is contained in:
Lynix
2015-01-04 14:21:09 +01:00
parent 4de17fdffb
commit 8a836b2060
9 changed files with 1137 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
// Copyright (C) 2014 Jérôme Leclercq
// This file is part of the "Nazara Engine - Utility module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_FONTDATA_HPP
#define NAZARA_FONTDATA_HPP
#include <Nazara/Prerequesites.hpp>
#include <Nazara/Core/String.hpp>
struct NzFontGlyph;
class NAZARA_API NzFontData
{
public:
NzFontData() = default;
virtual ~NzFontData();
virtual bool ExtractGlyph(unsigned int characterSize, char32_t character, bool bold, NzFontGlyph* dst) = 0;
virtual NzString GetFamilyName() const = 0;
virtual NzString GetStyleName() const = 0;
virtual bool HasKerning() const = 0;
virtual bool IsScalable() const = 0;
virtual int QueryKerning(unsigned int characterSize, char32_t first, char32_t second) const = 0;
virtual unsigned int QueryLineHeight(unsigned int characterSize) const = 0;
virtual float QueryUnderlinePosition(unsigned int characterSize) const = 0;
virtual float QueryUnderlineThickness(unsigned int characterSize) const = 0;
};
#endif // NAZARA_FONTDATA_HPP