wiki:Docs/Prog/Manual/DeviceSupport/Display

Table of Contents

  1. 825 Programmer's Manual
  2. Application Libraries
  3. Database Libraries
    1. MySQL Client
    1. About SQLite
    2. SQLite Library (libsql)
      1. Using libsql
    3. SqlBuilder? Class
    4. SQLite++ Class
    5. Using SQLite++ with SqlBuilder?
  4. Standard 825 Library with Application class (lib825)
    1. Utility Functions
  5. Standard 825 Library with EVENT features (lib825ev)
  6. Communications Functions
  7. CComm
    1. Member Functions
      1. Send
        1. Description
        2. Return value
      2. Process
        1. Description
      3. AddRcvEvent
        1. Description
        2. Example
    2. See Also
  8. CCommClient
      1. Constructor
      2. Member Functions
        1. Description
        2. Example
    1. See Also
  9. CCommSerial
    1. Constructors
        1. Parameters
        2. Examples
        3. Example
    2. Member Functions
      1. SetPort
        1. Parameters
        2. Return Value
      2. Open
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      3. Close
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      4. SetParameters
        1. Parameters
        2. Return Value
        3. Remarks
        4. Examples
      5. IsReady
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      6. SetRTS
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
    3. See Also
  10. CCommServer
      1. Constructor
      2. Member Functions
        1. Description
        2. Example
    1. See Also
  11. Analog Output (DAC Digital to Analog Conversion) Functions
  12. GetDAC
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  13. GetDACPercent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  14. GetDACRangeFromIndex
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  15. GetIndexFromDACRange
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  16. SetDACFloat
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  17. SetDACOutputRange
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  18. SetDACPercent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  19. SetDACReg
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  20. SetDACTrackGrossNet
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  21. SetDACTrackScale
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  22. StopDACTrackScale
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  23. Display Functions
  24. CBitmap
    1. Constructors
        1. Parameters
        2. Examples
    2. Member Functions
      1. LoadBitmp?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. DeleteBitmap?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      3. Draw
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      4. GetWidth?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      5. GetHeight?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      6. GetColorCnt?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      7. GetColorsAdded?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      8. GetError?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      9. ReclaimColors?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
  25. ClearLCD
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  26. DisplayStr = DEPRECATED, DOES NOT CURRENTLY WORK!!! See DisplayText …
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  27. DisplayText
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  28. GetX
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  29. GetY
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  30. InitLCD
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  31. IsFontLoaded
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  32. LocateLCD
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  33. PrintLCD
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  34. PrintLCDbutton
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  35. PrintLCDfont2
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  36. ReadFont
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  37. SetBkColor
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  38. SetCurColor
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  39. File Functions
  40. CFile
    1. Constructors
        1. Parameters
        2. Examples
    2. Member Functions
      1. Open
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. Close
        1. Parameters
        2. Retrun Value
        3. Remarks
        4. Example
      3. SetSerial?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Examples
      4. ReadLine?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      5. DeleteFile?
        1. Parameters
        2. Return value
        3. Remarks
        4. Examples
      6. IsOpen?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      7. IsReady?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      8. SetRTS
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      9. GetFile?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      10. Print
        1. Parameters
        2. Return Value
        3. Remarks
        4. Examples
      11. SetNonBlocking?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      12. Read
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      13. Write
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      14. GetBytesRead?
        1. Parameters
        2. Return Value
        3. Example
      15. GetbytesWritten?
        1. Parameters
        2. Return Value
        3. Example
      16. Seek
  41. IsMounted
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  42. Form Functions
  43. CForm
    1. Methods
      1. EnableItem
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. FindName
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
  44. EVENT
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  45. EVENT_FLAG_SHOW
    1. Examples
    2. See Also
  46. EVENT_SHOW_BTN_CONTENT
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  47. FORM_ADD_BUTTON
    1. Parameters
    2. Return Value
    3. Remarks
      1. Button Styles
    4. Examples
    5. See Also
  48. FORM_ADD_INPUT
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  49. FORM_DONE_ESCAPE
    1. Example
      1. See Also
  50. FORM_DONE_LEFT_ARROW
    1. Example
      1. See Also
  51. FORM_HIDE
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  52. FORM_INIT
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  53. FORM_IS_UPDATED
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  54. FORM_RUN
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  55. FORM_SHOW
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  56. IN_EVENT_HIDE_FORM
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  57. IN_EVENT_SHOW_FORM
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  58. IN_EVENT_WRITE_DATA
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  59. Input / Output (Digital I/O) Functions
  60. GetInput
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  61. GetInputMask
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  62. GetOutput
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  63. SetDIOCounter
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  64. SetOutput
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  65. SetOutputMask
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  66. StartDIOPulse
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  67. StartRepeatIO
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  68. StopDIOPulse
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  69. StopRepeatIO
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  70. Keypad/Sound Functions
  71. ClearKeyBuffer
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  72. KeyPadInsertKey
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  73. KeyPadSetUSBEvent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  74. OpenBeeper
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  75. PlayNotes
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  76. WaitKeypress
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  77. Process Functions
  78. GetProcessID
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  79. GetProcessIDExcludeSelf
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  80. KillProcess
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  81. ResetPrevGrossWt
  82. ResetPrevNetWt
  83. ResetPrevTareWt
  84. test
  85. String Functions
  86. FloatToStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  87. IntToStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  88. StrFmt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  89. StrFmtLen
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  90. StrToFloat
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  91. StrToInt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  92. StrTrimLeft
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  93. StrTrimRight
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  94. Ticket Functions
  95. CTktFlds
    1. Constructor
        1. Parameters
        2. Examples
    2. Member Functions
      1. Clear
        1. Parameters
        2. Return Value
        3. Remarks
        4. Examples
      2. Set
        1. Parameters
        2. Retrun Value
        3. Remarks
        4. Example
      3. SetEvent?
        1. Parameters
        2. Retrun Value
        3. Remarks
        4. Example
  96. PrintTkt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  97. Time and Date Functions
  98. CMillisecondTimer
    1. Constructors
        1. Parameters
        2. Example
    2. Member Functions
      1. Set
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. Clear
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
  99. CSleep
    1. Constructor
        1. Parameters
        2. Example
    2. Member Functions
      1. SetTime?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. Pause
        1. Parameters
        2. Retrun Value
        3. Remarks
        4. Example
  100. CTimer
    1. Constructors
        1. Parameters
        2. Example
    2. Member Functions
      1. Set
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. Clear
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
  101. DoSleep
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  102. GetDateStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  103. GetLinuxTime
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  104. GetTimeStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  105. IsTimeChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  106. ResetPrevTime
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  107. SleepMilliseconds
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  108. SleepSeconds
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  109. Utility Functions
  110. GetKernelVer
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  111. GetKernelVerStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  112. GetLoaderVer
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  113. GetLoaderVerStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  114. GetMemFree
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  115. GetMnBdVer
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  116. GetMnBdVerStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  117. Weighing Functions
    1. Minimal Weight Indicator Sample Program
  118. CheckWIM
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  119. FormatGrossWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  120. FormatNetWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  121. FormatTareWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  122. GetBelowZero
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  123. GetCapacity
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  124. GetCenterZero
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  125. GetCurUnitsLabel
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  126. GetDecimal
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  127. GetGrossWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  128. GetInterval
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  129. GetMotion
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  130. GetNetWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  131. GetNumScales
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  132. GetOverCap
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  133. GetProcessScale
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  134. GetSecUnitsLabel
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  135. GetTareWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  136. GetUnitsLabel
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  137. GetWtError
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  138. IsGrossWtChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  139. IsNetWtChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  140. IsTareWtChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  141. IsWtStatusChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  142. IsWtUnitsChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  143. MnBdClearEvent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  144. MnBdClose
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  145. MnBdGetErr
  146. MnBdGetErrMsg
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  147. MnBdGetErrMsgStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  148. MnBdOpen
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  149. MnBdProcess
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  150. MnBdRead
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  151. MnBdRequest
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  152. MnBdSetEvent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  153. MnBdShutdown
  154. MnBdStartup
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  155. ResetPrevGrossWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  156. ResetPrevNetWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  157. ResetPrevTareWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  158. ResetPrevWtStatus
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  159. ResetPrevWtUnits
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  160. SetTareCurrent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  161. SetTareValue
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  162. SetWIM
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  163. StartRepeatMulti
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  164. StartRepeatWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  165. StopRepeatMulti
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  166. StopRepeatWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  167. ZeroScale
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  168. Development Environment
  169. Application Signing
  170. Debugging
    1. GDB
  171. Setup for Software Development
      1. About
      2. Features of the Cardinal 825 Programming Environment
      3. Required Files
      4. Installing the Environment
      5. Starting the Environment
      6. Using the Environment
        1. Welcome Screen
        2. Project Explorer
        3. Task Repositories
        4. Task Queries
        5. Subversion
        6. Hyper-V
  172. Version Control
    1. Subversion
      1. About Subversion
      2. Subclipse for Eclipse
        1. Installing Subclipse
          1. Importing Projects Using Subclipse
  173. Device Support
  174. Device Drivers
    1. Overview
  175. Beeper
  176. DIO
    1. Digital I/O
    2. DIO Events
      1. About
      2. The Code
    3. DIO Counting
      1. Description
      2. Example
  177. Display
    1. Fonts
  178. Network
    1. Network File System (NFS)
    2. Weight Server -- Network Access
    3. Network Programming
      1. 825 TCP/IP Server Example
      2. 825 TCP/IP Client Example
    4. Send E-mail from 825
  179. Serial Ports
    1. Using Serial Ports for Linux Shell
    2. Generic Serial Port Use
  180. USB Support
    1. 825 USB A Ports (2)
      1. USB Mass Storage
        1. Accessing USB storage from a program
      2. USB Keyboards
      3. USB Printing
        1. Compatible USB Printers
      4. USB Hubs
    2. 825 USB B Port (1)
      1. USB to PC communications
  181. Weighing
    1. Get Weight
      1. Command prompt testing
      2. Access the weight data from a program
        1. Example of simple weighing program
        2. Example of high Speed weighing of two scales using total mode
  182. Foundation
  183. Application Mode Startup
    1. Introduction
    2. Modules
    3. Appmenu Shell Script
    4. Mounts
    5. Support Applications
  184. Shell operations - Linux / DOS Reference
  185. Mainboard Protocol
  186. Environment Setup
    1. About
    2. Features of the Cardinal 825 Programming Environment
    3. Required Files
    4. Installing the Environment
    5. Starting the Environment
    6. Using the Environment
      1. Welcome Screen
      2. Project Explorer
      3. Task Repositories
      4. Task Queries
      5. Subversion

Display

Multiple fonts are supported using the nano-X (microwindows) .fnt format. The Cardinal SmartWeigh Font converter program may be used to convert TrueType ttf fonts to the .fnt format. Proper licensing must be obtained for any copyrighted fonts to be used.

A special button font is provided with characters that are formatted to be used as buttons for “Zero”, “Tare”, “Gross”, “Net”, “Units”, and “Print”.

Fonts

Fonts are stored in the 825 in files with the Linux nano-X (rockbox) format .fnt. The font folder is /mnt/nand/fonts.

The 825 graphics device driver and the lib825 application library provide functions for loading fonts into RAM memory and displaying text using the loaded fonts

ReadFont

The lib825 function “ReadFont” is used to read and load a font file into RAM.

The parameter nFont is a font number which should be in the range: 1 – 29

The parameter pszFilename is the full path and filename of the font such as:

“/mnt/nand/fonts/Font788_11x2.fnt” (Reminder: Linux path and filenames are case sensitive)

int ReadFont(int nFont, const char* pszFilename)

The return value is zero if successful or one if an error occurred.

DisplayStr

The lib825 function “DisplayStr” is used to display a text string using a specified font.

The parameter nFont is a font number of a font previously loaded into RAM using ReadFont

The parameter x is the X coordinate

The parameter y is the Y coordinate

The parameter dsplogic is the display logic which may be DSP_LOGIC_SET, DSP_LOGIC_XOR, DSP_LOGIC_RESET, or DSP_LOGIC_OVERWRITE

#define DSP_LOGIC_SET 0

#define DSP_LOGIC_XOR 1

#define DSP_LOGIC_RESET 2

#define DSP_LOGIC_OVERWRITE 3

void DisplayStr(int nFont, int x, int y, int dsplogic, const char* p)

Font788.exe

The Windows utility program Font788.exe, previously part of the SmartWeigh install is updated to allow converting 788 fonts or TTF fonts to 825 format. (If your PC does not have the appropriate support files to run this program run the “vcredist.exe” program to install them).

Make sure all font copyrights are observed. Obtain proper licensing for any fonts to be used.

A new menu option “Load built-in font…” is provided.

This allows loading the standard built in fonts.

The “File” “Export” option now allows “Export to 825 format...”

The “Font” menu has an additional feature “Information” which allows detailed viewing and some limited editing of fonts.

Font characters may be modified by clicking the squares representing each pixel. If a pixel which is on is clicked it will be turned off. If a pixel which is off is clicked it will be turned on.

Remote Control using custom fonts

To use apps using custom fonts with remote control the DspApplet.class should be at least version 1.09

The version will show at the bottom of the applet.

A fonts link should be created in the html folder:

This allows the applet to access the fonts in /mnt/nand/fonts from the default html location. [^]

Last modified 8 years ago Last modified on Nov 30, 2009, 2:32:58 PM