[reportlab-users] CID fonts + Platypus

Andy Robinson reportlab-users@reportlab.com
Thu, 3 Jul 2003 00:32:19 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0026_01C340FA.8FCFD570
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

MessageWe support the Asian Font Packs which come with Acrobat 4/5
and these are CID fonts.  The User Guide has a section on
Asian fonts, and reportlab/test/test_multibyte_???.py gives
4 examples.

This presumes access to a standard CMap directory as will
be found in tour Acrobat Reader installationif you have installed
the Asian Font Packs.  Or, you could copy the CMap files
from another machine and ensure the location is listed
in reportlba/rl_config.  Adobe Reader 6.0 seems to do it
differently.

To support other CID fonts, you will need to add some descriptor
info similar to that in our reportlab\pdfbase\cidfonts.py module
(and _cidfontdata.py in the same directory).

I just hope you don't plan to embed them :-)

Hope this helps,

Andy Robinson
  -----Original Message-----
  From: reportlab-users-admin@reportlab.com
[mailto:reportlab-users-admin@reportlab.com]On Behalf Of Adam Summers
  Sent: 01 July 2003 09:56
  To: reportlab-users@reportlab.com
  Subject: [reportlab-users] CID fonts + Platypus


  Hi,

  Quick question: is it possible to use CID fonts with platypus? Is there an
example available?

  Thanks and regards,
  Adam


------=_NextPart_000_0026_01C340FA.8FCFD570
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =
size=3D2>We=20
support the Asian Font Packs which come with Acrobat =
4/5</FONT></SPAN></DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =
size=3D2>and=20
these are CID fonts.&nbsp; The User Guide has a section =
on</FONT></SPAN></DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =
size=3D2>Asian=20
fonts, and reportlab/test/test_multibyte_???.py =
gives</FONT></SPAN></DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =
size=3D2>4=20
examples.</FONT></SPAN></DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =
size=3D2>This=20
presumes access to a standard CMap directory as will</FONT></SPAN></DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =
size=3D2>be=20
found in tour Acrobat Reader installationif you have=20
installed</FONT></SPAN></DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =
size=3D2>the=20
Asian Font Packs.&nbsp; Or, you could copy the CMap =
files</FONT></SPAN></DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =
size=3D2>from=20
another machine and ensure the location is listed</FONT></SPAN></DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =
size=3D2>in=20
reportlba/rl_config.&nbsp; Adobe Reader 6.0 seems to do =
it</FONT></SPAN></DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =

size=3D2>differently.</FONT></SPAN></DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =
size=3D2>To=20
support other CID fonts, you will need to add some=20
descriptor</FONT></SPAN></DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =
size=3D2>info=20
similar to that in our reportlab\pdfbase\cidfonts.py =
module</FONT></SPAN></DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =
size=3D2>(and=20
_cidfontdata.py in the same directory).</FONT></SPAN></DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =
size=3D2>I just=20
hope you don't plan to embed them :-)</FONT></SPAN></DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =
size=3D2>Hope=20
this helps,</FONT></SPAN></DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D430012723-02072003><FONT face=3DArial color=3D#0000ff =
size=3D2>Andy=20
Robinson</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B>=20
  reportlab-users-admin@reportlab.com=20
  [mailto:reportlab-users-admin@reportlab.com]<B>On Behalf Of </B>Adam=20
  Summers<BR><B>Sent:</B> 01 July 2003 09:56<BR><B>To:</B>=20
  reportlab-users@reportlab.com<BR><B>Subject:</B> [reportlab-users] CID =
fonts +=20
  Platypus<BR><BR></FONT></DIV>
  <DIV><SPAN class=3D870075508-01072003><FONT face=3DArial size=3D2>Hi,=20
  </FONT></SPAN></DIV>
  <DIV><SPAN class=3D870075508-01072003><FONT face=3DArial=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D870075508-01072003><FONT face=3DArial =
size=3D2>Quick question: is=20
  it possible to use CID fonts with platypus? Is there an example=20
  available?</FONT></SPAN></DIV>
  <DIV><SPAN class=3D870075508-01072003><FONT face=3DArial=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D870075508-01072003><FONT face=3DArial =
size=3D2>Thanks and=20
  regards,</FONT></SPAN></DIV>
  <DIV><SPAN class=3D870075508-01072003><FONT face=3DArial=20
  size=3D2>Adam</FONT></SPAN></DIV>
  <DIV>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0026_01C340FA.8FCFD570--