ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* RE: Re: Installing a new font.
@ 2004-10-27 16:18 Dirar BOUGATEF
  2004-10-27 16:29 ` Patrick Gundlach
  2004-10-27 16:42 ` Adam Lindsay
  0 siblings, 2 replies; 6+ messages in thread
From: Dirar BOUGATEF @ 2004-10-27 16:18 UTC (permalink / raw)


I have tried the three of your propositions:

First : keeping sans:

1. using \ss works
2. \definebodyfont[ss,Karat] does not.

Second : changing from sans

3. Changed all refs to "sans" into "serif" in my typescript file karat.tex. 
This works too.

Now, my font is a sans. What is the best way to configure it ?

Is Context configured to use serif by default when u type any text ?

Many thanks.

Dirar.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Installing a new font.
  2004-10-27 16:18 Re: Installing a new font Dirar BOUGATEF
@ 2004-10-27 16:29 ` Patrick Gundlach
  2004-10-27 16:42 ` Adam Lindsay
  1 sibling, 0 replies; 6+ messages in thread
From: Patrick Gundlach @ 2004-10-27 16:29 UTC (permalink / raw)


Hello,

> First : keeping sans:
>
> 1. using \ss works

That are good news!

> 2. \definebodyfont[ss,Karat] does not.

did you try \setupbodyfont[ss,Karat] or \setupbodyfont[Karat,sans] or
\setupbodyfont [sans]?


> Second : changing from sans
>
> 3. Changed all refs to "sans" into "serif" in my typescript file
>    karat.tex. This works too.
>
> Now, my font is a sans. What is the best way to configure it ?

OK, if your font is a sans serif, then renaming makes no sense here.

> Is Context configured to use serif by default when u type any text ?

yes

> Many thanks.

you're welcome. 

Patrick
-- 
ConTeXt wiki: http://contextgarden.net

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: Installing a new font.
  2004-10-27 16:18 Re: Installing a new font Dirar BOUGATEF
  2004-10-27 16:29 ` Patrick Gundlach
@ 2004-10-27 16:42 ` Adam Lindsay
  1 sibling, 0 replies; 6+ messages in thread
From: Adam Lindsay @ 2004-10-27 16:42 UTC (permalink / raw)


Dirar BOUGATEF said this at Wed, 27 Oct 2004 16:18:19 +0000:

>1. using \ss works
>2. \definebodyfont[ss,Karat] does not.
>
>Second : changing from sans
>
>3. Changed all refs to "sans" into "serif" in my typescript file karat.tex. 
>This works too.

good.

>Now, my font is a sans. What is the best way to configure it ?

return the values back to sans.

There was a typo in your original typeface definition:
>\starttypescript [Karat]
>  \definetypeface [Karat] [rm] [sans] [karat] [default] [encoding=texnansi]
>%                          ^^
>\stoptypescript

should be:

\starttypescript [Karat]
  \definetypeface [Karat] [ss] [sans] [karat] [default] [encoding=texnansi]
\stoptypescript


>Is Context configured to use serif by default when u type any text ?

Yes, it's a reasonable default. 

\definebodyfont[ss,Karat] should work now, though!
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: Installing a new font.
@ 2004-10-29 11:04 Dirar BOUGATEF
  0 siblings, 0 replies; 6+ messages in thread
From: Dirar BOUGATEF @ 2004-10-29 11:04 UTC (permalink / raw)


Got it by the end. I had to uncomment the line that includes the use of 
Type-buy which includes the fallback typescript.

Thanks to you all guys, you've made a happy man.

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: Installing a new font.
@ 2004-10-27 23:12 Dirar BOUGATEF
  0 siblings, 0 replies; 6+ messages in thread
From: Dirar BOUGATEF @ 2004-10-27 23:12 UTC (permalink / raw)


Great, this works.

It's a bit more clear now. There is still one problem. I use the sans 
fallback in my typescript as follows, so that every alternative such as 
italic etc .. is mapped to my regular font (I have only one font file for 
the moment). Why do i get cmr italic instead of regular karat when i use \it 
for instance, or \bf etc. ?



% This is Karat.tex

\loadmapfile[texnansi-rubicon-karatmedium.map]

\starttypescript [sans][karat][texnansi]
  \definefontsynonym [karat-sans][texnansi-KAMN][encoding=texnansi]
\stoptypescript

\starttypescript [sans][karat][name]
  \usetypescript[sans][fallback]
  \definefontsynonym [Sans][karat-sans]
\stoptypescript

\starttypescript [karat]
  \definetypeface [karat] [ss] [sans] [karat] [default] [encoding=texnansi]
\stoptypescript



Normally within the following example, i should get a text that is all 
written in regular karat(Well, probably not for \em !).



\usetypescriptfile[Karat.tex]
\usetypescript[karat]
\setupbodyfont[karat]

\starttext
This is Karat roman, {\it italic,} {\bf bold,} and {\bi bold-italic.}

\ss Hello world

{\em \bf This is also bold-italic.}

We have {\sc small caps} and old-style figures: {\os 0123456789}.
\stoptext



Thanks again.

Dirar.

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Re: Installing a new font.
@ 2004-10-27 14:18 Dirar BOUGATEF
  0 siblings, 0 replies; 6+ messages in thread
From: Dirar BOUGATEF @ 2004-10-27 14:18 UTC (permalink / raw)


[-- Attachment #1: Type: text/html, Size: 23972 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-10-29 11:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-27 16:18 Re: Installing a new font Dirar BOUGATEF
2004-10-27 16:29 ` Patrick Gundlach
2004-10-27 16:42 ` Adam Lindsay
  -- strict thread matches above, loose matches on Subject: below --
2004-10-29 11:04 Dirar BOUGATEF
2004-10-27 23:12 Dirar BOUGATEF
2004-10-27 14:18 Dirar BOUGATEF

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).