Skip to content

Commit 91ec958

Browse files
committed
Cleanup some unnecessary FT2Font class members.
1 parent ac0a423 commit 91ec958

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/ft2font.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,8 @@ int FT2Font::get_kerning(FT_UInt left, FT_UInt right, FT_UInt mode)
611611
void FT2Font::set_text(
612612
size_t N, uint32_t *codepoints, double angle, FT_Int32 flags, std::vector<double> &xys)
613613
{
614+
FT_Matrix matrix; /* transformation matrix */
615+
614616
angle = angle / 360.0 * 2 * M_PI;
615617

616618
// this computes width and height in subpixels so we have to divide by 64

src/ft2font.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,12 @@ class FT2Font
117117
private:
118118
FT2Image image;
119119
FT_Face face;
120-
FT_Matrix matrix; /* transformation matrix */
121120
FT_Vector pen; /* untransformed origin */
122121
std::vector<FT_Glyph> glyphs;
123-
std::vector<FT_Vector> pos;
124122
FT_BBox bbox;
125123
FT_Pos advance;
126-
double ptsize;
127-
double dpi;
128124
long hinting_factor;
129125

130-
void set_scalable_attributes();
131-
132126
// prevent copying
133127
FT2Font(const FT2Font &);
134128
FT2Font &operator=(const FT2Font &);

0 commit comments

Comments
 (0)