ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: \uchar and italics question
Date: Thu, 19 Jan 2006 10:43:17 +0100	[thread overview]
Message-ID: <43CF5F35.2020103@wxs.nl> (raw)
In-Reply-To: <38818B77-53E9-4526-8D24-8759360B515D@zonnet.nl>

sjoerd siebinga wrote:

> Hi� Hans,
>
> On 19 Jan 2006, at 00:26, Hans Hagen wrote:
>
>> did you try:
>>
>>
>> \defineunicodefont [MySwitch] [MyOwnFont] % [command=\insertunicodeglyph]
>>
>>
>> \definefontsynonym [MyOwnFontRegular] [Sans]
>>
>> \definefontsynonym [MyOwnFontItalic] [SansItalic]
>>
>>
>> \MySwitch \uchar... \it ...
>>
>
> Yes, but still no bold or italics. Maybe there is something wrong with 
> my definitions.
>
> [code]
> \defineunicodefont [MySwitch] [mylinostar] % [command=\insertunicodeglyph]
>
> \loadmapfile[palatinolinostar_01xx-starling-linostar]
> \definefontsynonym [mylinostarRegular01] 
> [palatinolinostar_01xx-PalatinoLinoStar]
> \definefontsynonym [mylinostarBold01] 
> [palatinolinostar_01xx-PalatinoLinoStarBold]
> \definefontsynonym [mylinostarItalic01] 
> [palatinolinostar_01xx-PalatinoLinoStarItalic]
>
> \starttext
> {\MySwitch \uchar{1}{1}} \\�
> {\MySwitch \it \uchar{1}{1}} \\
> {\MySwitch \bf \uchar{1}{1}}� \\
>
> \stoptext
>
> [/code]
>
> I have installed the font without errors with TeXfont.�

can you test with:

\unexpanded\def\unicodeglyph#1#2% watch the double mapping
  {\begingroup
   \getvalue{@@\currentucharmapping\strippedcsname\uchar}{#1}{#2}%
   \bodyfontsize\unicodescale\bodyfontsize
   \font\unicodefont=\truefontname{\unicodestyle\unicodeone}
     at \currentfontscale\bodyfontsize
   \unicodestrut
  \unicodefont\unicodecharcommand{\char\unicodetwo\relax}%
   \endgroup}

i'll change the handlers in not applying a strut by default

Hans

  reply	other threads:[~2006-01-19  9:43 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-17 16:57 sjoerd siebinga
2006-01-17 22:54 ` Hans Hagen
2006-01-18 12:10 ` Mojca Miklavec
2006-01-18 14:22   ` Hans Hagen
2006-01-18 20:04     ` sjoerd siebinga
2006-01-18 23:26       ` Hans Hagen
2006-01-19  7:21         ` sjoerd siebinga
2006-01-19  9:43           ` Hans Hagen [this message]
2006-01-19 10:30             ` sjoerd siebinga
2006-01-19 10:42               ` Hans Hagen
2006-01-19 13:17               ` Henning Hraban Ramm
2006-01-19 16:35                 ` sjoerd siebinga
2006-01-19 17:20                   ` Hans Hagen
2006-01-19 18:50                   ` Henning Hraban Ramm
2006-01-19 19:44                     ` Hans Hagen
2006-01-19 20:51                       ` sjoerd siebinga
2006-01-20  9:26                         ` Henning Hraban Ramm
2006-01-20 17:30       ` Mojca Miklavec
2006-01-17 16:57 sjoerd siebinga
2006-01-18  6:56 sjoerd siebinga

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=43CF5F35.2020103@wxs.nl \
    --to=pragma@wxs.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).