Barchart fonts

Hello,
I’ m Stefan and I am new to the fonts. I need something that seems simple, but I couldn’ t get it done with my experimentation on high-logic. I need a scalable font that would allow to create barcharts to print on Xerox printers.
Basically, it should be a narrow rectangle filled black or with grayscale. It was easy to create the black font, but I couldn’t find any grayscale option with high-logic. I tried to create a font made of little dots, but it cannot be scaled; any scale yields visible patterns when printed (or displayed - I mention that because the patterns look different on monitor and in the printout).
Any idea about how to solve this problem would be welcome.
Stefan

Font are black and white. However, in Excel or Word you can select a font color (Format/Cells/Font/Color or Format/Font/Color) which will replace the black letter and therefore be scalable. In order to get the background color to change in Excel (Format/Cells/Patterns) or Word (Format/Background) gives choices. Still not a feature of font technology.

Or, more precisely, opaque and transparent.

Any kind of postscript type fill with dots, hashes, etc., will suffer from the scaling problem, and will become invisible at small sizes. You might be able to work out a solution with different shapes — rectangular, triangular, inverted triangle, rhomboid, dotted lines, etc., but colour is something that needs to be added later.

It depends what is meant by a bar chart.

For example, it could be that the bars are horizontal with the same vertical thickness and with different horizontal lengths, or it could be that the “bars” are vertical with the same horizontal thickness and with different vertical heights.

I put bar in quotes because, in heraldry, a bar is horizontal, the vertical equivalent being a pale. I have not, however, known of the term pale chart being used, though I have known of bar charts having vertical “bars”.

One approach is to have the bars or the pales as black and have a small amount of white space to each side of the black. That way, the bars or pales will stand out one from another as they are surrounded by white space.

If you are building up the bars or the pales from units, such as using the cell for 2 for a bar and the cell for 1 for a pale and the cell for 0 for a space, then an important consideration is rounding effects as the application uses the contours of the font to produce a pixel display on the screen.

Opinions may differ from person to person, yet I would use 2048 font units by 2048 font units for the size of each item and then have the solid black go from 0 to 2048 in one direction and from 256 to 1792 in the other. I would then display the font at any of 12, 24, 36, 48, 72 point as desired. I would avoid sizes such as 14 point as that might produce rounding effects leading to the white gaps between the pales as being uneven in size in places.

For this special purpose font I would access Font Settings… Metrics and make each value that has the word Ascent or Ascender in its name 2048 and all the rest as 0. I do not fully understand what the metrics with Gap in their names do, yet I have found that setting them to 0 seems to do no harm. That seems to set up the vertical measurement.

For the horizontal measurement: in the Glyph Overview window, right click on a glyph, then choose Properties… from the menu that appears and set Advance Width to 2048.

Using 0, 1 and 2 is a suggestion for a basic font. Once the basic 2048 font units by 2048 font unit size for the item has been established, there could be other items added to the font. For example, 3 to enable half a unit to be added to the top of a pale and a 4 to enable half a unit to be added to the right-hand side of a bar.

Using such a font, diagrams should be producable using Microsoft WordPad.

A font of my own that uses a similar technique, not for bar charts but for designs built up from units, is my Style Art font.

It is a free download and is featured in the Style Art Font thread in the Gallery forum.

http://forum.high-logic.com:9080/t/style-art-font/2287/1

I hope that this helps.

William Overington

21 November 2009

I tried making a font as suggested above and also added a few extra glyphs.

Using a through to p provides sixteen different heights for a pale, with p being full height.

The q is used as a base line.

Using an s to represent a space, the following produces a gradually rising chart.

sabcdefghijklmnops
ppppppppppppppppps
ppppppppppppppppps
qqqqqqqqqqqqqqqqqq

A more varied chart could be expressed in the following manner.

sssbmossss
sfnpppjass
spppppppes
qqqqqqqqqq

Here is the font.

Horizontal bars can be produced using A through to P, with Q as a side line at the left.

If mixing Q and q, then t and T (they are the same as each other) can be used to complete the corner.
BARCHART.TTF
William Overington

23 November 2009