Category Archives: GLCD Fonts

GLCD Font Output formats : Raw or Struct

Bitmap2LCD is a tool for programming small Graphic LCDs in embedded systems.

GLCD Font Output formats : Raw or Struct

Standard Edition, Update V3.7c

From release V2.4d , you can choose between two types of font data output, bitmaps in a raw data array or a C tfont structure

Check (raw) or uncheck (struct) the raw/-struct checkbox in the configuration settings panel

Version 3.7 +

bitmap2lcd-font-data-structure

C language tfont structure in stuct font output mode :

typedef struct {
long int code;
const tImage *image;
} tChar;
typedef struct {
int length;
const tChar *chars;
} tFont;


Previous Versions :

Version 3.0 +

Bitmap2lcd Font Settings

 

 

Before Version 3.0 +

Bitmap2LCD Configuration Settings Raw Struct

 

 

Import a Unicode Character into Work Canvas

Bitmap2LCD is a tool for programming small Graphic LCDs in embedded systems.

Import a Unicode Character into Work Canvas exportcharw

Update V3.7c

  • Open then Font Panel and select a Unicode Font, here for example Greek
  • Create a text frame and mouse click at top left text location in the work Canvas -> a red frame area appears (see red arrow)
  • Select a char in the Font Panel grid (yellow Arrow) and click the export button exportcharw (black arrow) OR  double-click on the char in the Font Panel grid (yellow Arrow)
  • When finished, move the Text frame to its location , and Paste paste the Text Area with keyboard key Enter or the Paste button.

bitmap2lcd-export-unicode-to-canvas

 

Graphic LCD and International Fonts and Characters

Bitmap2LCD is a tool for programming small Graphic LCDs in embedded systems and a programmable graphic and text processing tool.

International Fonts and Characters

Update V3.7c

Quote :

Unicode is a computing industry standard for the consistent encoding, representation, and handling of text expressed in most of the world’s writing systems. Developed in conjunction with the Universal Character Set standard and published as The Unicode Standard, the latest version of Unicode contains a repertoire of more than 110,000 characters covering 100 scripts and multiple symbol sets. The standard consists of a set of code charts for visual reference, an encoding method and set of standard character encoding, a set of reference data computer files, and a number of related items, such as character properties, rules for normalization, decomposition, collation, rendering, and bidirectional display order (for the correct display of text containing both right-to-left scripts, such as Arabic and Hebrew, and left-to-right scripts).

Source :

https://en.wikipedia.org/wiki/Unicode

The standard is maintained by the Unicode Consortium.

http://www.unicode.org/

// Quote

To access the international characters, open the Font panel, select the Unicode fonts (blue arrow)

Select the Font ( for example Arial Unicode MS ) (yellow arrow) and the Unicode Block (in this example Thai )

To have an overview of the Unicode block names, addresses, types and language, select the Unicode List tab and click on the List Unicode Information Table button (red arrow)

bitmap2lcd-unicode-information-list

 

Overview of the Unicode Blocks

Bitmap2lcd Unicode _2

 

The information of the selected block (red arrow below) are located in the Unicode Info Tab (yellow arrow)

The available information are the number of chars of the selected block, the number of sub-Blocks, if the number of chars exceeds 256 chars ( size of the grid ) , the address range of the chars ( from – To ) , the block type and the block language if specified.

If the number of chars in the block exceeds 256, there are buttons to navigate in the sub-blocks of the block (blue arrow)

bitmap2lcd-unicode-block-info

 

Convert a List of Unicode Char Addresses to Data

Bitmap2LCD is a tool for programming small Graphic LCDs in embedded systems and a programmable graphic and text processing tool.

Convert a List of Unicode Char Addresses to Data

Standard Edition

( V3,2g build 1 > )

Loading a list of International Characters in form of a List of Hex Unicode Addresses for example, copied out of a Web Page, copied out of a document, or out of a Excel CSV file, and convert these Chars to Data in one single run is possible from version 3.2g.

Input Format : One single Unicode Hexadecimal Char Address per line in the text file, Hex prefix can be “0x” or “$” or none. Only the first 4 chars of the Address are taken into account.

 

This feature is accessible from the Font Panel (blue arrows)

bitmap2lcd load list of unicode chars

Select the Text/CSV file to load

bitmap2lcd load list of unicode chars 2

Convert the List to Data

Option : As there can be gaps between the Char Addresses in the List, in the Font Settings you can check the Char Address in Descriptor option and define the Address Format

bitmap2lcd load list of unicode chars 3

 

 

Displaying Dynamic Analog Numbers

Bitmap2LCD is a tool for programming small Graphic LCDs in embedded systems and a programmable graphic and text processing tool.

Displaying Dynamic Analog Numbers or Floating Point Numbers

The panel of parameters to show dynamic numbers is located In the extended part of the Work Canvas (blue arrow)

This feature can be used to simulate LCD panel designs with variable numbers, instead of leaving a blank area where a dynamic number will later be programmatically displayed on the target hardware.

In the Analog Dynamic Value Panel (red arrow) You can define the X and Y coordinates, the Min and Max value, the value to display and choose between several decimal representation options.

The number (green arrow) can be shown / hidden and its value changed using a Trackbar. The Font, font Size and font style can be defined in the Font Panel.

 

Bitmap2lcd Dynamic Analog Numbers

 

Convert a range of unicode chars for GLCD Font

Bitmap2LCD is a tool for programming small Graphic LCDs in embedded systems.

Convert a range of unicode chars for GLCD Font

Obsolete article, only for previous versions < V3.7

Another way to convert unicode chars by defining a range of them:

  • Enter font script mode
  • Enter Range Mode (yellow arrow)
  • If necessary, erase the from Hex and to Hex addresses with the clr button
  • Select Range Start in the char grid (red arrow), address appears in From Hex (blue Arrow)
  • Select Range End the same way in the char grid -> To Hex
  • Then Validate Address (blue arrow)
  • Encode the Font Range (orange Arrow)

Note : You can define Start and End of range addresses in different Fonts blocks. The condition is that the Start address is below the end address.

Version 3.0+

Bitmap2lcd Unicode Font Range

 

 

Before Version 3.0