How do I embed foreign language text in a macro?

The SLCD controller family uses UTF-8 encoding for non-ASCII characters. To incorporate UTF-8 characters into a macro file, you need to use an editor that supports UTF-8 encoding. Windows Notepad can do this. First, make sure you have a Unicode font installed (Arial Unicode MS comes with Microsoft Office) on your desktop to see the Unicode characters. Then start Notepad and set Format->Font to a Unicode font. Then select File->Save (or Save As…), and at the bottom of the pop-up box, you will see Encoding: ANSII. Click on the drop-down box and select UTF-8. Then save to set the encoding. Then, copy the following into the editor: #define test m test2 "Нажмите здесь" #end #define test2 // display text argument somewhere t "`0`" 10 20 #end The font or encoding is wrong if you don’t see the Russian text. Then, save the file as “testMacro”.txt or similar, download this macro [...]

How do I embed foreign language text in a macro?2022-04-08T10:29:00-07:00

What types of fonts can be loaded using BMPload?

Downloadable fonts are rendered from True Type or Open Type Windows fonts and then stored in .SIF files. One file for each font type, size, attribute (i.e., italic, bold), and character subset included. Please specify if you want a standard character set (extended ASCII like ISO 8859-X). ISO sets defined. If we do not offer the characters you need, please don't hesitate to contact our technical support team and specify the Unicode subset you need. We support UTF-8 encoding. Find UTF-8 for a given Unicode. For Unicode, the subset size determines the size of the .SIF font. The complete Unicode set of a font like SimSun at 16 pixels high (not 16-point) is 946KB and has over 20,000 characters. See Fonts for Embedded Touch Screen Development for a comprehensive explanation of working with fonts.

What types of fonts can be loaded using BMPload?2022-04-08T12:19:40-07:00

How can I match Windows font sizes and SLCD font sizes for downloadable fonts?

Use Photoshop or the open-source equivalent GIMP to design a user interface screen on a PC. It can be hard to match the embedded fonts on the SLCD family of controllers with Windows fonts. If you need an exact match, you must do two things: Set image scaling in the Windows design program to 96 dpi (establish the size/scale) and; Use a Reach Technology generated downloadable font of the same font name and point size. Find fonts. If you need fonts not shown, please get in touch with the technical support team and specify the Windows font name, the size in points, and the character set (either ISO 8859-1 or a Unicode subset). See the Fonts for Embedded Touch Screen Development for a comprehensive explanation of working with fonts.

How can I match Windows font sizes and SLCD font sizes for downloadable fonts?2022-04-08T11:36:17-07:00

How do I handle fonts in India with multiple languages?

We need the Windows font name for fonts, size in pixels or points, and Unicode range required. Per Wikipedia, ISCII uses an 8-bit code, an extension of the 7-bit ASCII code containing the basic alphabet necessary for the ten Indian scripts originating from the Brahmi script. There are 15 officially recognized languages in India. Apart from Perso-Arabic scripts, the other ten scripts used for Indian languages have evolved from ancient Brahmi and have a similar phonetic structure, making a standard character set possible. The ISCII code table is a superset of all the characters required in the Brahmi-based Indian scripts. For convenience, we use the alphabet of the official script Devanagari. We can provide downloadable fonts accessed as 8-bit characters if you can provide a font with ISCII characters. See Fonts for Embedded Touch Screen Development for a comprehensive explanation of working with fonts.

How do I handle fonts in India with multiple languages?2022-04-08T11:38:06-07:00

I am currently using the font files Arial18.sif, Arial24.sif and Arial12.sif for the English version of my application. How would I get Russian fonts of a similar size?

We have font files on our web page that should work for you. Look in the Arial Unicode Fonts Folder for the Unicode fonts in the size you need. The Cyrillic fonts are in the ranges 0x0400-0x04FF and 0x0500-0x05FF.  Another useful font site lets you see the characters and display codes for many different fonts.

I am currently using the font files Arial18.sif, Arial24.sif and Arial12.sif for the English version of my application. How would I get Russian fonts of a similar size?2022-04-08T12:20:09-07:00

We need to use some special characters (i.e. space (20 hex) through z (7A hex) including punctuation to work). How do we make them work?

Here is an example of printing the special characters “, \, and % in ‘C’ strings using our API. void demoSpecialChars(void) { char buf[120]; sprintf(buf,”f 24″); // set font size 24 sendToSerialPort(buf); sprintf(buf,”s 0 1″); // set black on white sendToSerialPort(buf); sprintf(buf,”z”); // clear screen sendToSerialPort(buf); sprintf(buf,”t \”%s\”\r”,”Backslash: \\\\“); // backslash in string sendToSerialPort(buf); sendToSerialPort(“t \”\n\”\r”); // newline // backslash as character sprintf(buf,”t \”%s%c%c\”\r”,”Backslash: “,’\\’,’\\’); sendToSerialPort(buf); sendToSerialPort(“t \”\n\”\r”); // newline sprintf(buf,”t \”%s\”\r”,”Percent: %”); // Percent sendToSerialPort(buf); sendToSerialPort(“t \”\n\”\r”); // newline sprintf(buf,”t \”Percent: %%\”\r”); // Percent sendToSerialPort(buf); sendToSerialPort(“t \”\n\”\r”); // newline // Quote (need 2 to get one for SLCD, and one more to allow ” in string) sprintf(buf,”t \”%s\”\r”,”Quote: \\\“”); sendToSerialPort(buf); sendToSerialPort(“t \”\n\”\r”); // newline // Quote as character sprintf(buf,”t \”%s%c%c\”\r”,”Quote: “,’\\’,’“‘); sendToSerialPort(buf); sendToSerialPort(“t \”\n\”\r”); // newline } See Fonts for Embedded Touch Screen Development for a comprehensive explanation of working with fonts.

We need to use some special characters (i.e. space (20 hex) through z (7A hex) including punctuation to work). How do we make them work?2019-10-24T10:53:43-07:00

What are the licensing arrangements for the various fonts?

A font file such as a .TTF that contains details about how to render a font in different sizes is subject to licensing. However, when fonts are rendered in a particular size and attribute (bold, italic, etc.), such as in our .SIF files, it is no longer copyrightable and needs no license to be used.

What are the licensing arrangements for the various fonts?2019-10-24T10:53:26-07:00

With utf8 off, I am able to display a bullet character with the command: t “\xb7” 100 100. Is there a way for me to display that same character when I have utf8 on?

You need to use the UTF-8 format of the character. For conversion between Unicode and UTF-8, see http://www.utf8-chartable.de/. In your case, the bullet character 0xB7 is c2 b7, so the text command would be: utf8 on t “\xc2\xb7” 100 100 Here’s a handy online conversion utility: http://www.ltg.ed.ac.uk/~richard/utf-8.cgi?input=b7&mode=hex There are probably formulas to work these out in your application as well. Here is more detail than you might want: http://en.wikipedia.org/wiki/UTF-8

With utf8 off, I am able to display a bullet character with the command: t “\xb7” 100 100. Is there a way for me to display that same character when I have utf8 on?2022-04-08T12:25:19-07:00
Go to Top