[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mgp-users 01185] Problem is Definitely Connected to mgp2ps



Okay, now I've got some firm evidence to help identify the
source of my problem in viewing MGP presentations correctly
from *.ps or *.pdf files.  I transferred the *.ps file created
by mgp2ps to the Windows box, and viewed it with Acrobat,
and it looks identical to the view I get from Ghostview on
the original Linux box!  A few fonts are correct, but the same
others are "bad" -- it looks like courier was substituted for
all of them.  And moving the *.mgp file to a different Linux
box, and running mgp2ps there, and viewing the results there,
shows the same display.

The important point about this is that all the truetype fonts
I'm using with MGP on the original Linux box *came from* the
Windows box, and they are still there!  So the problem can't
be one with the viewing system, but instead a problem with
how the *.ps file is specifying the fonts to be displayed.

An annotated excerpt from the *.ps file is shown below;
interestingly, some fonts are "loaded" but not "seen", and
vice versa.  I wonder what that means!

I'd appreciate any tips, including of course "this is a FAQ,
please look at a certain URL".

TIA,
-Tim

> %
> % scan_font page 1
> % xfont "times-medium-r" seen, mapped to ps font "Times-Roman"
> % tfont "arial.ttf" seen, mapped to ps font "ArialMT"
> 
> ** Never heard of this font!  Maybe it's for a cursor or something?
> % xfont "k14" seen, mapped to ps font "Ryumin-Light-H"
> %	(wildcard match against "*")
> 
> % tfont "dixon2.ttf" seen, mapped to ps font "Dixon-Italic"
> % loading font "Dixon-Italic" for dixon2.ttf
> /F004 {/Dixon-Italic findfont exch scalefont setfont} def
> % tfont "dixon.ttf" seen, mapped to ps font "Dixon"
> % loading font "Dixon" for dixon.ttf
> /F005 {/Dixon findfont exch scalefont setfont} def

NOTE: No "font ... seen" line for following font:

> % loading font "ArialMT" for arial.ttf
> /F002 {/ArialMT findfont exch scalefont setfont} def
> % tfont "dixon_wd.ttf" seen, mapped to ps font "DixonWide"

No "loading" line for DixonWide !

> % tfont "dixon_e1.ttf" seen, mapped to ps font "DixonExpanded-Bold"
> % loading font "DixonExpanded-Bold" for dixon_e1.ttf
> /F007 {/DixonExpanded-Bold findfont exch scalefont setfont} def
> % tfont "dixon1.ttf" seen, mapped to ps font "Dixon-Bold"
> % loading font "Dixon-Bold" for dixon1.ttf
> /F008 {/Dixon-Bold findfont exch scalefont setfont} def
> % scan_font page 2

 NOTE: No "seen" line!

> % loading font "DixonWide" for dixon_wd.ttf
> /F006 {/DixonWide findfont exch scalefont setfont} def
> % tfont "verdanab.ttf" seen, mapped to ps font "Verdana-Bold"
> % loading font "Verdana-Bold" for verdanab.ttf
> /F009 {/Verdana-Bold findfont exch scalefont setfont} def
> % tfont "verdana.ttf" seen, mapped to ps font "Verdana"
> % loading font "Verdana" for verdana.ttf
> /F010 {/Verdana findfont exch scalefont setfont} def
> % scan_font page 3
> % tfont "Wqtm_p_t.ttf" seen, mapped to ps font "QuickTypeMono"
> % loading font "QuickTypeMono" for Wqtm_p_t.ttf
> /F011 {/QuickTypeMono findfont exch scalefont setfont} def
> % tfont "courbd.ttf" seen, mapped to ps font "CourierNewPS-BoldMT"
> % loading font "CourierNewPS-BoldMT" for courbd.ttf
> /F012 {/CourierNewPS-BoldMT findfont exch scalefont setfont} def
> % scan_font page 4
> % tfont "courbi.ttf" seen, mapped to ps font "CourierNewPS-BoldItalicMT"
> % loading font "CourierNewPS-BoldItalicMT" for courbi.ttf
> /F013 {/CourierNewPS-BoldItalicMT findfont exch scalefont setfont} def
> % scan_font page 5
> % scan_font page 6
> % scan_font page 7
> % tfont "couri.ttf" seen, mapped to ps font "CourierNewPS-ItalicMT"
> % loading font "CourierNewPS-ItalicMT" for couri.ttf
> /F014 {/CourierNewPS-ItalicMT findfont exch scalefont setfont} def

-Tim
*------------------------------------------------------------*
| Tim Maher (206) 781-UNIX  (866) DOC-PERL  (866) DOC-UNIX   |
| CEO, JAWCAR ("Just Another White Camel Award Recipient")   |
| tim(AT)Consultix-Inc.Com  TeachMeUnix.Com  TeachMePerl.Com |
*+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*
|  Watch for my Book: "Minimal Perl for Shell Programmers"   |
*------------------------------------------------------------*