Re: [flpsed] monotype font in flpsed

From: José Guzmán <jg2001_at_alexacorp.com>
Date: Mon, 09 Aug 2010 10:51:44 -0500

Thanks Johannes,

I compiled a package from source this weekend and applied your patch, it
works great!

 However there's still some character letter spacing difference with
respect to the rendered file, as displayed with evince. Apparently
evince uses a different courier font than flpsed.

 I guess I'll just fill those pdfs regardless of their character squares.

 Thanks again

 José

On 08/04/2010 02:55 PM, Johannes Hofmann wrote:
> Hi José,
>
> On Wed, Aug 04, 2010 at 11:19:39AM -0500, José Guzmán wrote:
>
>> Hallo list,
>>
>> Is there a way to force flpsed to write with a monospaced font instead
>> of the default variable-width font it uses?
>> This way I could fill those silly PDF forms that have a square for every
>> character instead of an open line.
>>
>> BTW I'm using flpsed 0.5.2 in ubuntu 9.10.
>>
>
> Unfortunately the font is currently hardcoded to Helvetica. However
> if you compile flpsed from source you can try the patch below to use
> Courier instead.
>
> Hope this helps,
> Johannes
>
>
> diff -r e0397e5c76f3 src/PSEditWidget.cxx
> --- a/src/PSEditWidget.cxx Mon Sep 07 21:52:34 2009 +0200
> +++ b/src/PSEditWidget.cxx Wed Aug 04 21:53:12 2010 +0200
> @@ -20,7 +20,7 @@
>
> #include "PSEditWidget.H"
>
> -#define FLPSED_FONT FL_HELVETICA
> +#define FLPSED_FONT FL_COURIER
> #define FLPSED_TAG_FONT FL_COURIER
> #define FLPSED_TAG_FONT_SIZE 10
>
> diff -r e0397e5c76f3 src/Postscript.cxx
> --- a/src/Postscript.cxx Mon Sep 07 21:52:34 2009 +0200
> +++ b/src/Postscript.cxx Wed Aug 04 21:53:12 2010 +0200
> @@ -376,7 +376,7 @@
> return
> "/PSEditWidgetPageCount 0 def\n"
> "/PSEditWidgetPC 0 def\n"
> - "/PSEditWidgetFontHelvetica /Helvetica findfont def\n"
> + "/PSEditWidgetFontHelvetica /Courier findfont def\n"
> "/PSEditWidgetshowpage /showpage load def\n"
> "/showpage {\n"
> "gsave initgraphics\n"
>
>
>
>
Received on Mon Aug 09 2010 - 17:51:44 CEST

This archive was generated by hypermail 2.2.0 : Mon Aug 09 2010 - 17:55:02 CEST