<div dir="ltr">I absolutely love the fact that there are still people in this world that know how to write and optimize PostScript.<div><br></div><div>It makes me pine for the days that I knew and used LaTeX every day.</div><div><br></div><div>And also, from me...Thank you Dianne! <br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>-- <br>Justin B. Alcorn</div><div>The views expressed are not necessarily my own, much less anyone else's<br>PGP Fingerprint CCEB F776 C3FD 1050 C8DB 532E B8B9 BED7 7764 406C</div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 30, 2021 at 5:59 PM Craig B Agricola via Remind-fans <<a href="mailto:remind-fans@lists.skoll.ca">remind-fans@lists.skoll.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">At the risk of being overly pedantic (but I have an unnatural love for writing<br>
Postscript), there's faster code for the prefix that you suggested. Since you<br>
are using gsave/grestore, we don't care about eventual scaling-creep from<br>
scaling up and then scaling back down, so you can use<br>
<br>
(gsave currentfont 1.5 scalefont setfont) (grestore)<br>
<br>
That saves the dictionary lookup of both /EntryFont and /EntrySize. It would<br>
also play nice if there was some other prefix/postfix code that this was<br>
combined with.<br>
<br>
I fully acknowlege that nowadays the speedup is likely unimportant because the<br>
processor that the Postscript is running on is way too fast for it to matter,<br>
but "back in the day" Postscript was being run in printers with slow CPUs that<br>
would have cared, especially if this was being done to multiple reminders on<br>
the calendar...<br>
<br>
Cheers,<br>
-Craig<br>
<br>
PS. Since I don't post on the list often, I'll say "Thanks!" to Dianne again<br>
for Remind!<br>
<br>
On Thu, Dec 30, 2021 at 04:36:05PM -0500, Dianne Skoll via Remind-fans wrote:<br>
> The two ()()s after the reminder are PostScript strings; they contain<br>
> PostScript code executed before and after rendering the reminder. So<br>
> edit to:<br>
> <br>
> % ==============================<br>
> [<br>
> [(Friend's)(Birthday)<br>
> (gsave /EntryFont findfont EntrySize 1.5 mul scalefont setfont)(grestore)]<br>
> ]<br>
> (30) 1<br>
> DoCalBox<br>
> % ==============================<br>
> <br>
> That executes:<br>
> <br>
> gsave /EntryFont findfont EntrySize 1.5 mul scalefont setfont<br>
> <br>
> prior to rendering the reminder, which does the following:<br>
> gsave - save graphics context<br>
> /EntryFont findfont - find the font used to draw calendar entries<br>
> EntrySize 1.5 mul scalefont - scale it up to 1.5x normal size<br>
> setfont - and set the font<br>
> <br>
> Then after the reminder is rendered, grestore restores the graphics context.<br>
_______________________________________________<br>
Remind-fans mailing list<br>
<a href="mailto:Remind-fans@lists.skoll.ca" target="_blank">Remind-fans@lists.skoll.ca</a><br>
<a href="https://dianne.skoll.ca/mailman/listinfo/remind-fans" rel="noreferrer" target="_blank">https://dianne.skoll.ca/mailman/listinfo/remind-fans</a><br>
Remind is at <a href="https://dianne.skoll.ca/projects/remind/" rel="noreferrer" target="_blank">https://dianne.skoll.ca/projects/remind/</a><br>
</blockquote></div>