Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of RA8875 by
Diff: RA8875.h
- Revision:
- 127:db7f2c704693
- Parent:
- 125:7a0b70f56550
- Child:
- 131:5bd6ba2ee4a1
--- a/RA8875.h Sat Aug 06 15:09:34 2016 +0000 +++ b/RA8875.h Sat Aug 06 20:04:23 2016 +0000 @@ -293,10 +293,10 @@ align_full ///< align - full } alignment_t; - /// Scale factor - 1, 2, 3 4 + /// Font Horizontal Scale factor - 1, 2, 3 4 typedef int HorizontalScale; - /// Scale factor - 1, 2, 3, 4 + /// Font Vertical Scale factor - 1, 2, 3, 4 typedef int VerticalScale; /// Clear screen region @@ -1476,7 +1476,21 @@ /// @returns success/failure code. See @ref RetCode_t. /// RetCode_t SetTextFontSize(HorizontalScale hScale = 1, VerticalScale vScale = -1); - + + + /// Get the text font size of the RA8875 internal fonts. + /// + /// This command lets you retrieve the current settings for the font + /// horizontal and vertical scale factors. The return value is + /// one of the scale factors 1, 2, 3, or 4. + /// + /// @param[out] hScale is a pointer to memory where the horizontal scale factor + /// will be written. If the pointer is null, that item will be ignored. + /// @param[out] vScale is a pointer to memory where the vertical scale factor + /// will be written. If the pointer is null, that item will be ignored. + /// @returns success/failure code. See @ref RetCode_t. + /// + RetCode_t GetTextFontSize(HorizontalScale * hScale, VerticalScale * vScale); /// put a character on the screen. /// @@ -2267,6 +2281,11 @@ /// virtual RetCode_t SelectUserFont(const uint8_t * font = NULL); + /// Get the currently selected user font. + /// + /// @returns a pointer to the font, or null, if no user font is selected. + /// + virtual const uint8_t * GetUserFont(void) { return font; } /// Get the RGB value for a DOS color. ///