Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #2263

Re: How change character Metrics?

Newsgroups comp.lang.postscript
Date 2015-05-13 23:50 -0700
References <mj0rb8$qbb$1@dont-email.me>
Message-ID <d187407b-2f2a-47ad-8d8a-e6717b021447@googlegroups.com> (permalink)
Subject Re: How change character Metrics?
From luser- -droog <mijoryx@yahoo.com>

Show all headers | View raw


On Wednesday, May 13, 2015 at 7:48:46 PM UTC-5, Martin Leese wrote:
> Hi,
> 
> I want to close up the characters in some
> text, and can not work out how to do this.
> There will be text at many different
> orientations, so I decided that to do this
> in the character coordinate system would be
> preferred.  This looks like a job for the
> Metrics dictionary inside the font
> dictionary.
> 
> I have never tried kerning before;
> suggestions for alternative approaches
> would be welcome.
> 
> Here is the PostScript I have:
> 
> %!
> % PostScript code to test kerning of font.
> %
> /tempMetrics 2 dict def
> tempMetrics /S [0.0 0.5] put
> tempMetrics /P [0.0 0.5] put
> 
> /CenturySchL-Bold findfont 20 dict copy dup /Metrics tempMetrics put 22 
> scalefont setfont

You need to call `definefont` with your modified font
dictionary, and then you can use the return value
or call `findfont` again with the new name (definefont
takes a /name parameter btw).

Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How change character Metrics? Martin Leese <please@see.Web.for.e-mail.INVALID> - 2015-05-13 18:48 -0600
  Re: How change character Metrics? luser- -droog <mijoryx@yahoo.com> - 2015-05-13 23:50 -0700
    Re: How change character Metrics? Martin Leese <please@see.Web.for.e-mail.INVALID> - 2015-05-14 11:26 -0600
      Re: How change character Metrics? Martin Leese <please@see.Web.for.e-mail.INVALID> - 2015-05-14 15:45 -0600
        Re: How change character Metrics? Martin Leese <please@see.Web.for.e-mail.INVALID> - 2015-05-15 09:24 -0600
  Re: How change character Metrics? ken <ken@spamcop.net> - 2015-05-14 07:56 +0100
    Re: How change character Metrics? Martin Leese <please@see.Web.for.e-mail.INVALID> - 2015-05-14 11:52 -0600

csiph-web