4D SYSTEMS APPLICATION NOTE. Application Note: 4D-AN-P3001 TURNING TECHNOLOGY INTO ART. ViSi - Displaying Third-Party Fonts

Similar documents
4D Systems. Application Note: 4D-AN-G3001. in ViSi Environment. Document Date: 15 th December Document Revision: 1.0

Workshop 4 Installation INSTALL GUIDE. Document Date: February 4 th, Document Revision: 1.1

DATASHEET 4D SYSTEMS. 4D Raspberry Pi Serial Adaptor TURNING TECHNOLOGY INTO ART. 4D-Serial-Pi-Adaptor

DATASHEET 4D SYSTEMS. 4D Arduino Adaptor Shield TURNING TECHNOLOGY INTO ART. 4Display-Adaptor-Shield

DATASHEET 4D SYSTEMS. 4D Raspberry Pi Serial Adaptor TURNING TECHNOLOGY INTO ART. 4D-Serial-Pi-Adaptor

DATASHEET 4D SYSTEMS. 4D Raspberry Pi Serial Adaptor TURNING TECHNOLOGY INTO ART. 4D-Serial-Pi-Adaptor

4D SYSTEMS TURNING TECHNOLOGY INTO ART. Application Note: 4D-AN-G5002

4D SYSTEMS APPLICATION NOTE. Application Note: 4D-AN-G5001 TURNING TECHNOLOGY INTO ART. Serial - Displaying Third-Party Fonts

4D Systems. Application Note: 4D-AN-P2002. Playing Video on PICASO based modules using RAW option. Document Date: 15 th December 2012

DATASHEET. 3.2 Display Bezel. 4D-Bezel-32 For the ulcd-32ptu Display Module. Document Date: 16 th September 2013 Document Revision: 1.

DATASHEET. gen4 Programming Adaptor For all gen4 sizes (Picaso and Diablo16) gen4-pa. Document Date: 29 th January 2016 Document Revision: 1.

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. USB to Serial UART Bridge Converter. Document Date: 5 th September 2012 Document Revision: 1.

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. microusb Programming Adaptor. USB to UART Serial Bridge

APPLICATION NOTE. Application Note: 4D-AN-P4004. ViSi-Genie Advanced Buttons. Document Date: November 15 th, Document Revision: 1.

USER GUIDE. Workshop 4 User Guide. Document Date: 17 th December 2012 Document Revision: 1.1

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. Carrier Board for μoled-160-g1/g2 CB-160-G1

APPLICATION NOTE. Application Note: 4D-AN-P4009. ViSi-Genie Inputs. Document Date: November 19 th, Document Revision: 1.0

DATASHEET 4D SYSTEMS. uusb-pa5 uusb-pa5-ii. microusb Programming Adaptor TURNING TECHNOLOGY INTO ART. USB to UART Serial Bridge

2.8 microlcd Intelligent PICASO Display Module

APPLICATION NOTE. Application Note: 4D-AN-P4007. ViSi-Genie Play Video. Document Date: November 15 th, Document Revision: 1.

DATASHEET 4D SYSTEMS. 4Display Shield with 2.2 Display TURNING TECHNOLOGY INTO ART. 4Display-Shield-22

DATASHEET. 4D 4.3 LCD CAPE Beagle Bone Black 4.3 LCD CAPE. Document Date: 3 rd February 2014 Document Revision: 1.9

DATASHEET. 4.3 Embedded SPI Display. 4DLCD-FT843 Powered by the FTDI FT800 Video Engine. Document Date: 25 th September 2013 Document Revision: 0.

Font Tool User Guide. Abstract. Document Date: 1 July 2009 Document Revision: 01

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. Embedded DOS micro-drive Module. μdrive-μsd-g1

Introduction. Rev.1.2

udrive-usd-g1 Embedded DOS micro-drive Module Data Sheet

USER MANUAL. Workshop4 IDE USER GUIDE. Document Revision: 2.1 Document Date: 29 th July 2017

DATASHEET. 4D 7.0 LCD CAPE Beagle Bone Black 7.0 LCD CAPE. Document Date: 3 rd February 2014 Document Revision: 1.2

DATASHEET 4D SYSTEMS. Embedded Audio-Sound Module TURNING TECHNOLOGY INTO ART SOMO-14D. Document Date: 5 th February 2013 Document Revision: 1.

DATASHEET. 4.3 Embedded SPI Display. 4DLCD-FT843 Powered by the FTDI FT800 Video Engine. Document Date: 8 th January 2014 Document Revision: 1.

DATASHEET. 4D 4.3 LCD CAPE Beagle Bone Black 4.3 LCD CAPE. Document Date: 15 th October 2013 Document Revision: 1.7 DISTRIBUTED BY TEXIM EUROPE

DATASHEET 4D SYSTEMS. Arduino Display Module Pack TURNING TECHNOLOGY INTO ART. ulcd-43-pt-ar. Featuring 4.3 Serial Display Module

REFERENCE 4D SYSTEMS TURNING TECHNOLOGY INTO ART. μdrive. (μdrive-μsd-g1) COMMAND SET. Document Date: 23 rd October 2012 Document Revision: 4.

DATASHEET 4D SYSTEMS. Raspberry Pi Display Module Pack TURNING TECHNOLOGY INTO ART. Featuring a 2.8 Display Module ulcd-28-ptu-pi

Application Note: 4D-AN-P4010 ViSi-Genie Connection to a Host with Red- Green-Blue LED Control

USER GUIDE. Workshop4 PRO SMART WIDGETS EDITOR. Document Revision: 1.1 Document Date: 29 th July 2017

Installing Your Microsoft Access Database (Manual Installation Instructions)

DATASHEET 4D SYSTEMS. Serial JPG Camera Module TURNING TECHNOLOGY INTO ART. Document Date: 5 th September 2012 Document Revision: 1.

Serial JPEG Camera Module Data Sheet

Serial JPEG Camera Module Data Sheet

RE866 Interface User Guide

GUI design made easy. Creating the First Project with. additional software

TO OUR VALUED CUSTOMERS

MySonicWall Secure Upgrade Plus

ESS Utility Android App User Guide

Copyright mikroelektronika, All rights reserved.

End User License Agreement

Title page. Alcatel-Lucent 5620 SERVICE AWARE MANAGER

DATASHEET. 4DPi-24-HAT. 2.4 Primary Display for the Raspberry Pi. In partnership with. Compatible with A+, B+ and Pi2

Copyright mikroelektronika, January All rights reserved.

GS2K OV SDK User Guide. 1VV Rev

GS2K External Flash based Host Firmware Update Application Note NT11608A Rev

SOMO-14D Embedded Audio-Sound Module

AN S1401 Using BlueMod+S as Beacon

INCLUDING MEDICAL ADVICE DISCLAIMER

One Identity Starling Two-Factor AD FS Adapter 6.0. Administrator Guide

user's guide to Expand development system capabilities by adding 8K EEPROM memory accessory board EEPROM

AT60142H/HT. Rad-Hard 512Kx8 Very Low Power CMOS SRAM ERRATA-SHEET. Active Errata List. Errata History. Abbreviations. 1.

QPP Proprietary Profile Guide

AVR42789: Writing to Flash on the New tinyavr Platform Using Assembly

CEC1702 clicker. a great idea is just a click away

AVRflash. Program. User manual

One Identity Quick Connect Express

mikrobasic PRO for FT90x Creating the first project in

MERIDIANSOUNDINGBOARD.COM TERMS AND CONDITIONS

Microcat Authorisation Server (MAS ) User Guide

1. License Grant; Related Provisions.

One Identity Active Roles 7.2

One Identity Starling Two-Factor Authentication. Administrator Guide

Terms of Use. Changes. General Use.

User Guide. BlackBerry Docs To Go for Android. Version 1.3.0

Terminal I/O Profile Client Implementation Guide

One Identity Active Roles Diagnostic Tools 1.2.0

mikroprog Suite for PIC programming software

Cloud Access Manager How to Deploy Cloud Access Manager in a Virtual Private Cloud

Oracle Binary Code License Agreement for Java Secure Sockets Extension for Connected Device Configuration 1.0.2

Pi Gateway Windows 7 Operator Manual

Reference Guide VIB 10/11. (VIB 10 pictured) vehicle integration box

Setting up the DR Series System on Acronis Backup & Recovery v11.5. Technical White Paper

One Identity Starling Identity Analytics & Risk Intelligence. User Guide

Spotlight Management Pack for SCOM. User Guide

Cloud Access Manager How to Configure for SSO to SAP NetWeaver using SAML 2.0

DATASHEET. Serial Camera Module. ucam-ii. Document Date: 6 th March 2014 Document Revision: 1.1

MULTIFUNCTIONAL DIGITAL SYSTEMS. Software Installation Guide

One Identity Starling Two-Factor Authentication. Administration Guide

Quest Code Tester for Oracle 3.1. Installation and Configuration Guide

END USER LICENSE AGREEMENT PANDA ANTIVIRUS 2007 / PANDA ANTIVIRUS + FIREWALL 2007 / PANDA INTERNET SECURITY 2007

VP-UML Installation Guide

user's guide to Expand development system capabilities by adding 12bit Digital to Analog Converter 12bit-DAC

Dell Change Auditor 6.5. Event Reference Guide

StickIt! MPU-9150 Manual. How to install and use your new StickIt! MPU-9150 Module

AccelDSP Synthesis Tool

Rapid Recovery License Portal Version User Guide

Stellar WAB to PST Converter 1.0

Daniel MeterLink Software v1.40

Copyright PFU LIMITED 2016

NOVPEK NetLeap User Guide

Development system. mikrommb for PIC32. User manual

DATASHEET. Embedded Audio-Sound Module SOMO-II. Document Date: 8 th January 2014 Document Revision: 0.1

Transcription:

TURNING TECHNOLOGY INTO ART APPLICATION NOTE Application Note: 4D-AN-P3001 ViSi - Displaying Third-Party Fonts Document Date: 15th March 2013 Document Revision: 1.0

Description This Application Note explains how custom fonts can be used on a PICASO module in ViSi Environment: Here is the list of items required to replicate this application, 4D Workshop 4 IDE A PICASO based Display Module 2GB usd Card 4D Programming Cable Application Overview There are 3 built in fonts in the PICASO processor, those are. Font1 (5x7) Font2 (8x8) Font3 (8x12) User might need more stylish and larger size fonts which is a need addressed in this application. User can import ANSII or UNICODE fonts. A customer might need the external fonts to be displayed in two ways, You may wish to display some text set in the Design time. You may wish to display the test in run time. Both of these are achievable. When you set the text in design time, it becomes an image that can be displayed whenever it s needed. Whereas in run time the text could be displayed using putch(), putstr() or putnum() command. NOTE: The file_dir() command is the only other command that writes the list of directory directly to the screen. This command is also affected by the Fonts change. 2012 4D Systems Page 2 of 9 www.4dsystems.com.au

Setup Procedure Foremost, the 4D Workshop 4 IDE has to be downloaded and installed. This is available from the 4D Systems website through the following link: http://www.4dsystems.com.au/prod.php?id=172 Adding Fonts Procedure Customizing Fonts using the ViSi environment Open the Workshop 4 (WS4) IDE and click "Create a new project". Documentation regarding Workshop 4 and its environments, such as ViSi, can also be downloaded from this site. These are the documents that you will need to refer to, to replicate this application. Workshop 4 - PICASO 4DGL Internal Functions Reference Manual Workshop 4-4DGL Programmers Reference Manual Workshop 4 - ViSi User Guide Choose the Display module you want to use. ulcd-32wptu will be used for this application. Click the image to change the orientation to Portrait and press Next. FAT (aka FAT16) format the usd card using Windows formatting tool, 2012 4D Systems Page 3 of 9 www.4dsystems.com.au

Select the ViSi evironment This will open the ViSi development environment window within the WS4 IDE as shown below. Go to Widgets, select Strings object under the Labels tab. Click on to the screen to drop the Strings object. Click Strings property in the Properties section at the bottom right to setup the Fonts. Write something on the left window. Select the Fonts and adjust other properties as required. For this application, we have only adjusted the following properties, o Written Hello World o Set Fonts to Cambria o Font size is set to 16 Press OK. The new project starts as noname project. Save the project as, say AddFonts. 2012 4D Systems Page 4 of 9 www.4dsystems.com.au

Adjust the size of the object to fit the text. Adjust it in the center. The exact location could also be set using the object properties. Simulation Procedure Uncomment the sections as shown in the image below and change the n or x from the variable definition to a distinct number (start with 1) at the code sections pointed in the image below, Put the cursor on, say line 34 and click Paste Code, 2012 4D Systems Page 5 of 9 www.4dsystems.com.au

You will see the following code added in the code section. Change i in the following command line to 0 for the message in the first Row of the String. PrintDisk(hstrings, Strings1StartH, Strings1StartL, Strings1Size, 0) ; Now, add the hfont2 variable definition and add the line as shown in the image above, hfont2 := file_loadimagecontrol("addfonts.da2", "AddFonts.gc2", 1); Change i in the following command line to 0 for the message in the first Row of the String. PrintDisk(hstrings, Strings2StartH, Strings2StartL, Strings2Size, 0) ; // where i is Message 0 - Strings2Count-1 Add another Strings object Drag and drop a new strings object on the screen. Adjust the properties and select the fonts. Move the cursor to the blank area, say line 43 and click paste code for the new string object. Completing the ViSi project Now, insert the usd card in the usd card reader on the PC/Notebook. Make sure, o The module is connected to the PC/Notebook through 4D Programming Cable o usd card is FAT (aka FAT16) formatted. o Correct Com port is selected. On the ViSi window Home ribbon in WS4 click Comp nload. 2012 4D Systems Page 6 of 9 www.4dsystems.com.au

After clicking on Comp nload, you will be prompted to select and confirm the drive to where the font files will be saved. Click OK to confirm and start copying. Printing text in custom fonts Now, the font data has been added to the usd card, you may not wish to use the preset text. Comment out the section that prints the preset text on the screen, as shown in the image below. Press OK to start writing the Font files to the usd card. Once that is finished, the IDE will continue and load the program to the module. After program is loading is finished, you will see a message on the Display Module s screen, Mounting... Or Drive not mounted... Insert the usd card in to the Display Module and your program would execute. Note: Up till now, we have only displayed the text preset in the design time. You may wish to display text in custom fonts in run time. You can use simple commands such as, // Print text in Custom Fonts txt_fontid(hfont1); print("\ni am Font1\n"); txt_fontid(hfont2); print("i am Font2\n"); 2012 4D Systems Page 7 of 9 www.4dsystems.com.au

putstr("using Putstr to print Font2\n"); putnum(hex, 34); print("\n"); txt_fontid(hfont1); file_dir("*.*"); //Print the files on screen in Font1 Here is what you should see on the screen, complete set of code is available with the application note. Tips The changes you make on the object properties after pasting the code do not reflect on the code. I.e. if you wish to edit the object properties you need to Paste Code after doing so. There is a complete STRINGSDEMO.4DViSi example in the 4D Workshop4 IDE. Click Samples, select Picaso ViSi Click for filtered browse, look for,..\4d Labs\Picaso Visi 2012 4D Systems Page 8 of 9 www.4dsystems.com.au

Proprietary Information The information contained in this document is the property of 4D Systems Pty. Ltd. and may be the subject of patents pending or granted, and must not be copied or disclosed without prior written permission. 4D Systems endeavours to ensure that the information in this document is correct and fairly stated but does not accept liability for any error or omission. The development of 4D Systems products and services is continuous and published information may not be up to date. It is important to check the current position with 4D Systems. All trademarks belong to their respective owners and are recognised and acknowledged. Disclaimer of Warranties & Limitation of Liability 4D Systems makes no warranty, either expresses or implied with respect to any product, and specifically disclaims all other warranties, including, without limitation, warranties for merchantability, non-infringement and fitness for any particular purpose. Information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. In no event shall 4D Systems be liable to the buyer or to any third party for any indirect, incidental, special, consequential, punitive or exemplary damages (including without limitation lost profits, lost savings, or loss of business opportunity) arising out of or relating to any product or service provided or to be provided by 4D Systems, or the use or inability to use the same, even if 4D Systems has been advised of the possibility of such damages. 4D Systems products are not fault tolerant nor designed, manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, direct life support machines or weapons systems in which the failure of the product could lead directly to death, personal injury or severe physical or environmental damage ( High Risk Activities ). 4D Systems and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities. Use of 4D Systems products and devices in 'High Risk Activities' and in any other application is entirely at the buyer s risk, and the buyer agrees to defend, indemnify and hold harmless 4D Systems from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any 4D Systems intellectual property rights. 2012 4D Systems Page 9 of 9 www.4dsystems.com.au