Re: [NTG-context] Strange spurious character

2016-11-20 Thread Hans Hagen

On 11/19/2016 8:22 PM, Wolfgang Schuster wrote:

Hans Hagen 
18. November 2016 um 23:08


I don't know,

\definefallbackfamily[mainface][serif][texgyrepagella]
\definefontfamily[mainface][sans][texgyrepagella]
\setupbodyfont[mainface]

\starttext

Why is the text in bold italic?

\stoptext

works ok here so you need to check what palatino gets selected (maybe
you need to be more specific)

I can reproduce with the palatino on my system which comes in ttc-format.

The problem is that context adds only a single font from a ttc-font to
the database
which results in weird results.

Clearing the font cache with "mtxrun --script cache --fonts --erase"
helps sometimes
but the problem can appear when the font cache is updated.


afaiks ttc subfonts get an entry in the name list (of course access by 
file is debatable then, in which case the first found match is used)


if you add fonts to the system with the same name you need to force a 
mtxrun --script font --reload --force


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
___

Re: [NTG-context] Strange spurious character

2016-11-19 Thread Otared Kavian
Hi Wolfgang,

Thanks for your remark: indeed after issuing the command

mtxrun --script cache --fonts —erase

the result is correct with palatino as the choice of font. 
I notice that the luatex-cache increases during the time: is there any reason 
for which the luatex-cache is not erased when updating? 

Best regards: OK

> On 19 Nov 2016, at 20:22, Wolfgang Schuster  
> wrote:
> 
>> Hans Hagen  18. November 2016 um 23:08
>> 
>> 
>> I don't know, 
>> 
>> \definefallbackfamily[mainface][serif][texgyrepagella] 
>> \definefontfamily[mainface][sans][texgyrepagella] 
>> \setupbodyfont[mainface] 
>> 
>> \starttext 
>> 
>> Why is the text in bold italic? 
>> 
>> \stoptext 
>> 
>> works ok here so you need to check what palatino gets selected (maybe you 
>> need to be more specific) 
> I can reproduce with the palatino on my system which comes in ttc-format.
> 
> The problem is that context adds only a single font from a ttc-font to the 
> database
> which results in weird results.
> 
> Clearing the font cache with "mtxrun --script cache --fonts --erase" helps 
> sometimes
> but the problem can appear when the font cache is updated.
> 
> Wolfgang
> ___
> 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
> ___

___
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
___

Re: [NTG-context] Strange spurious character

2016-11-19 Thread Wolfgang Schuster

Hans Hagen 
18. November 2016 um 23:08


I don't know,

\definefallbackfamily[mainface][serif][texgyrepagella]
\definefontfamily[mainface][sans][texgyrepagella]
\setupbodyfont[mainface]

\starttext

Why is the text in bold italic?

\stoptext

works ok here so you need to check what palatino gets selected (maybe 
you need to be more specific)

I can reproduce with the palatino on my system which comes in ttc-format.

The problem is that context adds only a single font from a ttc-font to 
the database

which results in weird results.

Clearing the font cache with "mtxrun --script cache --fonts --erase" 
helps sometimes

but the problem can appear when the font cache is updated.

Wolfgang
___
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
___

Re: [NTG-context] Strange spurious character

2016-11-19 Thread Otared Kavian
Hi Hans,

Indeed with your solution, that is saying

\definefallbackfamily[mainface][serif][texgyrepagella]
\definefontfamily[mainface][sans][texgyrepagella]
\setupbodyfont[mainface]

or more simply saying

\setupbodyfont[palatino,12pt]

there is no problem. It seems that the issue comes from the use of

\definefontfamily[mainface][sans][palatino]

in the example I sent.
So I am going to use your way of defining the fontfamily.

Thanks again and best regards: OK


> \starttext
> 
> Why is the text in bold italic?
> 
> \stoptext
> On 18 Nov 2016, at 23:08, Hans Hagen  wrote:
> 
> On 11/18/2016 10:50 PM, Otared Kavian wrote:
>> Hi Hans,
>> 
>> Thanks for the quick fix.
>> Indeed the spurious character does not show up anymore, but in the minimal 
>> example below the default body font seems to be set to bold italic, please 
>> see the attached PDF (I did not observe this in my real documents, but 
>> curiously it shows up in this minimal example): it may be that I am using a 
>> wrong font definition here.
>> The version of ConTeXt is  2016.11.18 22:20 MKIV beta  fmt: 2016.11.18.
>> 
>>  begin bug-beta.tex
>> \definefallbackfamily[mainface][serif][palatino]
>> \definefontfamily[mainface][sans][palatino]
>> \setupbodyfont[mainface]
>> 
>> \starttext
>> 
>> Why is the text in bold italic?
>> 
>> \stoptext
> 
> I don't know,
> 
> \definefallbackfamily[mainface][serif][texgyrepagella]
> \definefontfamily[mainface][sans][texgyrepagella]
> \setupbodyfont[mainface]
> 
> \starttext
> 
> Why is the text in bold italic?
> 
> \stoptext
> 
> works ok here so you need to check what palatino gets selected (maybe you 
> need to be more specific)
> 
> 
> 
> -
>  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
> ___

___
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
___

Re: [NTG-context] Strange spurious character

2016-11-18 Thread Hans Hagen

On 11/18/2016 10:50 PM, Otared Kavian wrote:

Hi Hans,

Thanks for the quick fix.
Indeed the spurious character does not show up anymore, but in the minimal 
example below the default body font seems to be set to bold italic, please see 
the attached PDF (I did not observe this in my real documents, but curiously it 
shows up in this minimal example): it may be that I am using a wrong font 
definition here.
The version of ConTeXt is  2016.11.18 22:20 MKIV beta  fmt: 2016.11.18.

 begin bug-beta.tex
\definefallbackfamily[mainface][serif][palatino]
\definefontfamily[mainface][sans][palatino]
\setupbodyfont[mainface]

\starttext

Why is the text in bold italic?

\stoptext


I don't know,

\definefallbackfamily[mainface][serif][texgyrepagella]
\definefontfamily[mainface][sans][texgyrepagella]
\setupbodyfont[mainface]

\starttext

Why is the text in bold italic?

\stoptext

works ok here so you need to check what palatino gets selected (maybe 
you need to be more specific)




-
  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
___

Re: [NTG-context] Strange spurious character

2016-11-18 Thread Otared Kavian
Hi Hans,

Thanks for the quick fix.
Indeed the spurious character does not show up anymore, but in the minimal 
example below the default body font seems to be set to bold italic, please see 
the attached PDF (I did not observe this in my real documents, but curiously it 
shows up in this minimal example): it may be that I am using a wrong font 
definition here. 
The version of ConTeXt is  2016.11.18 22:20 MKIV beta  fmt: 2016.11.18.

 begin bug-beta.tex
\definefallbackfamily[mainface][serif][palatino]
\definefontfamily[mainface][sans][palatino] 
\setupbodyfont[mainface]

\starttext

Why is the text in bold italic?

\stoptext
 end bug-beta.tex

Best regards: OK


bug-beta.pdf
Description: Adobe PDF document



> On 18 Nov 2016, at 22:30, Hans Hagen  wrote:
> 
> On 11/18/2016 9:03 PM, Otared Kavian wrote:
>> Hi Hans,
>> 
>> After having updated my installation of ConTeXt, I noticed the presence of a 
>> spurious « ß » character at the top of every document, or sometimes in the 
>> footer, or in the header.
>> Also in the example below the text is typeset with bold italic, even though 
>> there is no request for it.
>> 
>> Here is a minimal example:
>>  begin bug-beta.tex
>> \definefallbackfamily[mainface][serif][palatino]
>> \definefontfamily[mainface][sans][palatino]
>> \setupbodyfont[mainface]
>> 
>> \starttext
>> 
>> Why is there a « ß » LATIN SMALL LETTER SHARP S  above?
>> 
>> Why is the text in bold italic?
>> 
>> \stoptext
>>  end bug-beta.tex
> 
> fixed
> 
> -
>  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
> ___

___
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
___

Re: [NTG-context] Strange spurious character

2016-11-18 Thread Hans Hagen

On 11/18/2016 9:03 PM, Otared Kavian wrote:

Hi Hans,

After having updated my installation of ConTeXt, I noticed the presence of a 
spurious « ß » character at the top of every document, or sometimes in the 
footer, or in the header.
Also in the example below the text is typeset with bold italic, even though 
there is no request for it.

Here is a minimal example:
 begin bug-beta.tex
\definefallbackfamily[mainface][serif][palatino]
\definefontfamily[mainface][sans][palatino]
\setupbodyfont[mainface]

\starttext

Why is there a « ß » LATIN SMALL LETTER SHARP S  above?

Why is the text in bold italic?

\stoptext
 end bug-beta.tex


fixed

-
  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
___

[NTG-context] Strange spurious character

2016-11-18 Thread Otared Kavian
Hi Hans,

After having updated my installation of ConTeXt, I noticed the presence of a 
spurious « ß » character at the top of every document, or sometimes in the 
footer, or in the header.
Also in the example below the text is typeset with bold italic, even though 
there is no request for it.

Here is a minimal example:
 begin bug-beta.tex
\definefallbackfamily[mainface][serif][palatino]
\definefontfamily[mainface][sans][palatino] 
\setupbodyfont[mainface]

\starttext

Why is there a « ß » LATIN SMALL LETTER SHARP S  above?

Why is the text in bold italic?

\stoptext
 end bug-beta.tex

Best regards: OK


bug-beta.pdf
Description: Adobe PDF document
___
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
___