Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TFT_eSPI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
TFT_eSPI
Commits
43862876
Commit
43862876
authored
Feb 20, 2019
by
Bodmer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Permit larger anti-aliased fonts
Size limit for anti-aliased fonts raised to ~200 pixels
parent
1edfe6c6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Extensions/Smooth_font.cpp
Extensions/Smooth_font.cpp
+2
-2
Extensions/Smooth_font.h
Extensions/Smooth_font.h
+1
-1
No files found.
Extensions/Smooth_font.cpp
View file @
43862876
...
...
@@ -124,7 +124,7 @@ void TFT_eSPI::loadMetrics(uint16_t gCount)
gHeight
=
(
uint8_t
*
)
malloc
(
gCount
);
// Height of glyph
gWidth
=
(
uint8_t
*
)
malloc
(
gCount
);
// Width of glyph
gxAdvance
=
(
uint8_t
*
)
malloc
(
gCount
);
// xAdvance - to move x cursor
gdY
=
(
int8_t
*
)
malloc
(
gCount
);
// offset from bitmap top edge from lowest point in any character
gdY
=
(
int16_t
*
)
malloc
(
gCount
*
2
);
// offset from bitmap top edge from lowest point in any character
gdX
=
(
int8_t
*
)
malloc
(
gCount
);
// offset for bitmap left edge relative to cursor X
gBitmap
=
(
uint32_t
*
)
malloc
(
gCount
*
4
);
// seek pointer to glyph bitmap in SPIFFS file
...
...
@@ -141,7 +141,7 @@ void TFT_eSPI::loadMetrics(uint16_t gCount)
gHeight
[
gNum
]
=
(
uint8_t
)
readInt32
();
// Height of glyph
gWidth
[
gNum
]
=
(
uint8_t
)
readInt32
();
// Width of glyph
gxAdvance
[
gNum
]
=
(
uint8_t
)
readInt32
();
// xAdvance - to move x cursor
gdY
[
gNum
]
=
(
int8
_t
)
readInt32
();
// y delta from baseline
gdY
[
gNum
]
=
(
int16
_t
)
readInt32
();
// y delta from baseline
gdX
[
gNum
]
=
(
int8_t
)
readInt32
();
// x delta from cursor
readInt32
();
// ignored
...
...
Extensions/Smooth_font.h
View file @
43862876
...
...
@@ -35,7 +35,7 @@ fontMetrics gFont = { 0, 0, 0, 0, 0, 0, 0 };
uint8_t
*
gHeight
=
NULL
;
//cheight
uint8_t
*
gWidth
=
NULL
;
//cwidth
uint8_t
*
gxAdvance
=
NULL
;
//setWidth
int
8_t
*
gdY
=
NULL
;
//topExtent
int
16_t
*
gdY
=
NULL
;
//topExtent
int8_t
*
gdX
=
NULL
;
//leftExtent
uint32_t
*
gBitmap
=
NULL
;
//file pointer to greyscale bitmap
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment