[Remind-Fans] Trying to change the font size for specific entries when using rem2ps

Dianne Skoll dianne at skoll.ca
Thu Dec 30 16:36:05 EST 2021


Hi,

Some more info... here's how you'd edit the PostScript, in case you're
interested.

The reminder:

    REM 30 DEC MSG Friend's Birthday

yields:

% ==============================
[
  [(Friend's)(Birthday)
()()]
]
(30) 1
DoCalBox
% ==============================

The two ()()s after the reminder are PostScript strings; they contain
PostScript code executed before and after rendering the reminder.  So
edit to:

% ==============================
[
  [(Friend's)(Birthday)
(gsave /EntryFont findfont EntrySize 1.5 mul scalefont setfont)(grestore)]
]
(30) 1
DoCalBox
% ==============================

That executes:

   gsave /EntryFont findfont EntrySize 1.5 mul scalefont setfont

prior to rendering the reminder, which does the following:
   gsave                       - save graphics context
   /EntryFont findfont         - find the font used to draw calendar entries
   EntrySize 1.5 mul scalefont - scale it up to 1.5x normal size
   setfont                     - and set the font

Then after the reminder is rendered, grestore restores the graphics context.

Unfortunately, there's no way currently to pass in custom
pre/post-render code from Remind to rem2ps.  Might be something to
consider for a future release.  (The pre/post-rendering instructions
are used to render COLOR reminders; try one and examine the
PostScript output.)

Regards,

Dianne.


More information about the Remind-fans mailing list