What is Font Viewer?
Font Viewer is a simple utility written in Java which shows how text will appear when loading some font. There are two screens, one for showing own text with different colours for text and background and one for showing what characters are in the font. There are more ways for choosing the color, in the picture you can see clearly Dutch text, so it uses some parts of the OS.

System requirements
  • Minimum JRE: 1.6.0


Font Viewer on an eComStation machine with Open JDK


Installing Font Viewer
Download FontViewer_0_6_1_binaries.zip. Make a directory/map with the name "fontviewer". Open the zip file and copy everything to the new directory "fontviewer". That's all!


Font Viewer on an eComStation machine with Open JDK


The used cmd file
Font Viewer works with Open JDK in OS/2-eCS. I have a fontviewer.cmd file with the following contents;
@echo off
set BEGINLIBPATH=[drive: java]\JAVA160ga5\bin
set path=[drive: java]\JAVA160ga5\bin
[drive: fontviewer]
cd [drive: fontviewer]\fontviewer
java -Duser.home=[drive: fontviewer]\fontviewer -jar fontviewer.jar 2>fontviewer-bugs.txt 
I use 2 separate folders (directories), one for Java and one for Font Viewer with the files created by this program. The references used in the cmd file;

  • [drive: java] = drive with Java
  • [drive: fontviewer] = drive with Font Viewer

should be replaced with real drive letters. Save the file and name it "fontviewer.cmd" or use the file from the distribution. This file is copied to the "fontviewer" folder (directory). Furthermore, different paths?, adjust according to your needs. Create a new program object. Specify the path and file name: "[drive: fontviewer]\fontviewer\fontviewer.cmd". In the tabpage Session check the boxes "OS/2 window", "Running as an icon" and "Close Window to end program". In the tabpage General you can enter the name "Font Viewer".

Parameters / options explained
  • The statement "-Duser.home=[drive: fontviewer]\fontviewer" will ensure that Font Viewer will save all necessary files in own directory instead of saving them in the home directory.
  • The addition "2>fontviewer-bugs.txt" ensures that errors are saved in the file "fontviewer-bugs.txt". The 2 in "2>" is not a typo!

Download
In the file you can find the above command files (all drive letters are on set to C:) and an OS/2 Font Viewer icon: fontviewer-ecs.zip.

revision August 16, 2016