ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Howto metapost textext set or change basepoint (origin) baseline of text
Date: Thu, 20 Feb 2020 10:28:44 +0100	[thread overview]
Message-ID: <e86ffaca-f90b-c0d1-47dd-61676805d7b7@xs4all.nl> (raw)
In-Reply-To: <d70419c4822f745c8df9c7fd884c9e1d72a8facb.camel@out-world.com>

On 2/20/2020 10:15 AM, Christoph Hintermüller wrote:
> Hi
> I have the following problem. I convert a eps file using pstoedit into
> meta post file. When running this file through mptopdf the resulting
> pdf image is as expected. When i include, using the input command,  the
> file within a startMPcode endMPcode or startMPpage stopMPpage   after
> replacing simple draw <string>... by draw textext(<string) ... and
> compile the tex file with context than texts inside the graphic are
> schilfted bottom left.
> 
> To mee it seems as textext uses a different basepoint/baseline of the
> text, than pstoedit assumed. Maybe in additon effects related to
> differences in fonts may be additional reason.
> 
> My questions are
> What keywords do i have to enter in google or the context garden wiki
> search box to obtain examples and questions dealing with similar
> aspects
> 
> How do i explicitly set the position of the text origin point within
> the textbox/lable box used by textext. eg. assume origin point bottom
> left, left on baseline, center in the middle etc.
> 
> 
> What else might i bee missing or having a wrong idea how things are
> done by netapost/metafun/context in this context?
You can append a palcement suffix, like:

   textext.dflt

you can try:

   lft rt bot top ulft urt llft lrt d dflt drt origin raw

(if instead of an eps export you can use svg that can be an alternative 
route)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2020-02-20  9:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-20  9:15 Christoph Hintermüller
2020-02-20  9:28 ` Hans Hagen [this message]
2020-02-20 13:57   ` Christoph Hintermüller
2020-02-20 14:03   ` Christoph Hintermüller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e86ffaca-f90b-c0d1-47dd-61676805d7b7@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).