How to get the text print settings I expect

(or, how to get the font size I wanted)

Here's a problem you may not run into if you imported a configuration from a previous version of RPM, or if you go right to a standard report format by specifying lines per inch and characters per inch.

The problem some run into is that changing the font size doesn't work the way they expect, that is, it has no effect. We're going to walk through that here.

First, you've set up a Text Print action, first by adding a Text Markup transform then the action. (By the way, we consider this to be good advice, to add a text markup transform ahead of the text print action. If you don't, the text print action creates a text markup transform with default settings plus "auto-calc", and you will have no control over the results).

We'll start with the Text Markup dialog. Here is the dialog with the defaults:

Text Markup dialog

Text Markup dialog

Let's say that you want to change "Courier New 12" to "Courier New 14". It doesn't matter what size you pick; it could be 8 point. You click the Font button and get the standard Windows font dialog:

Windows fonts

Windows fonts

You click OK and go back to the Text Markup dialog. The font shows in the Text Markup dialog as "Courier New 14". Then you print again, and get exactly the results you had before ...

So, what's up?

Text metrics

In the beginning, RPM was designed to reproduce a business system or main frame report on a Windows printer. Many of these reports are designed for green bar or line printers. They have consistent column width and number of lines per page. So, we optimized RPM text output for that use.

What that means is that RPM focuses on text metrics; that is, the priority is to make the right number of lines come out on the page, the right number of characters on each line, and usually both.

By contrast, most people using a word processor will pick a font size, let's say 12 point, then start typing. The number of lines per page is incidental.

Let's take a look now at how to fix the problem described above.

Text markup w/o LPI

Text Markup without Lines per inch

Note the difference is that "Use lines per inch" is now off. It is on by default (see the first image). With that setting off, when RPM prints it will use the font size you selected in the Font dialog.

The logic of text sizing

The Text Markup portal has a description of how RPM uses lines per inch and characters per inch, including various combinations, to calculate the font size and determine how text is laid out on the page.