FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
C_glyph.hpp
1/*
2 * Copyright 2024 Guillaume Guillet
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef _FGE_GRAPHIC_C_GLYPH_HPP_INCLUDED
18#define _FGE_GRAPHIC_C_GLYPH_HPP_INCLUDED
19
20/*
21 * Original from : https://github.com/SFML/SFML
22 * Copyright (C) 2007-2022 Laurent Gomila
23 *
24 * Altered/Modified by Guillaume Guillet
25 */
26
27#include "FastEngine/C_rect.hpp"
28
29namespace fge
30{
31
32class Glyph
33{
34public:
35 Glyph() :
36 _advance(0.0f)
37 {}
38
39 float _advance = 0.0f;
40 int _lsbDelta = 0;
41 int _rsbDelta = 0;
44};
45
46} // namespace fge
47
48#endif // _FGE_GRAPHIC_C_GLYPH_HPP_INCLUDED
Definition C_glyph.hpp:33
int _lsbDelta
Left offset after forced autohint. Internally used by getKerning()
Definition C_glyph.hpp:40
fge::RectFloat _bounds
Bounding rectangle of the glyph, in coordinates relative to the baseline.
Definition C_glyph.hpp:42
float _advance
Offset to move horizontally to the next character.
Definition C_glyph.hpp:39
int _rsbDelta
Right offset after forced autohint. Internally used by getKerning()
Definition C_glyph.hpp:41
fge::RectInt _textureRect
Texture coordinates of the glyph inside the font's texture.
Definition C_glyph.hpp:43