Re: [NTG-context] simplefonts directory

2020-02-18 Thread Yves Cloutier
Thanks for the quick reply.

I added the line to my .bashrc file then from the command did source
~/.bashrc

I will try with quotes when i get home.

On Tue, Feb 18, 2020, 9:08 AM Vladimir Lomov,  wrote:

> Hello,
> ** Yves Cloutier  [2020-02-18 08:49:37 -0500]:
>
> > Hello,
>
> > I'm on linux and trying to add my fonts directories using
>
> > export OSFONTDIR=/usr/share/fonts/;$HOME/.fonts
>
> > however when I do, I get the following message:
>
> > bash: /home/drifter/.fonts: Is a directory
>
> > I'm not what I'm doing wrong or why it's not liking this. Any pointers
> > would be appreciated.
>
> Use double quotes:
> export OSFONTDIR="/usr/share/fonts/;$HOME/.fonts"
>
> P.S. You may be interested to read bash scripting guide, but in short the
> semicolon is used in shell (bash, zsh) to separate two or more commands in
> a
> row, so your line was interpreted by a shell (I assume that it is bash)
> like
> 1 command: export OSFONTDIR=/usr/share/fonts
> 2 command: $HOME/.fonts
> so indeed the $HOME/.fonts is a directory.
>
> ---
> WBR, Vladimir Lomov
>
> --
> If all else fails, lower your standards.
>
> ___
> 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] simplefonts directory

2020-02-18 Thread Vladimir Lomov
Hello,
** Yves Cloutier  [2020-02-18 08:49:37 -0500]:

> Hello,

> I'm on linux and trying to add my fonts directories using

> export OSFONTDIR=/usr/share/fonts/;$HOME/.fonts

> however when I do, I get the following message:

> bash: /home/drifter/.fonts: Is a directory

> I'm not what I'm doing wrong or why it's not liking this. Any pointers
> would be appreciated.

Use double quotes:
export OSFONTDIR="/usr/share/fonts/;$HOME/.fonts"

P.S. You may be interested to read bash scripting guide, but in short the
semicolon is used in shell (bash, zsh) to separate two or more commands in a
row, so your line was interpreted by a shell (I assume that it is bash) like
1 command: export OSFONTDIR=/usr/share/fonts
2 command: $HOME/.fonts
so indeed the $HOME/.fonts is a directory.

---
WBR, Vladimir Lomov

-- 
If all else fails, lower your standards.


signature.asc
Description: PGP signature
___
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] simplefonts directory

2020-02-18 Thread Tomas Hala
Tue, Feb 18, 2020 ve 08:49:37AM -0500 Yves Cloutier napsal(a):
#Hello,
#I'm on linux and trying to add my fonts directories using
# 
#  export OSFONTDIR=/usr/share/fonts/;$HOME/.fonts

export OSFONTDIR="/usr/share/fonts/;$HOME/.fonts"

Tomáš



# 
#however when I do, I get the following message:
# 
#  bash: /home/drifter/.fonts: Is a directory
# 
#I'm not what I'm doing wrong or why it's not liking this. Any pointers
#would be appreciated.

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


 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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] Simplefonts (was: geen onderwerp)

2017-05-05 Thread r . ermers
Thank you Wolfgang, that worked!

Robert

> Op 5 mei 2017, om 16:02 heeft Wolfgang Schuster  
> het volgende geschreven:
> 
> 
>> r.erm...@hccnet.nl  5. Mai 2017 um 11:48
>> Dear Contexters,
>> 
>> Since yesterday I have a font-problem. Until yesterday this would work 
>> perfectly:
>> 
>> \usemodule[simplefonts][size=10pt] %voor mkiv
>> \setmainfont[dejavuserif] %voor simplefonts
>> 
>> The system fonts worked too. Yesterday I wanted to make a presentation with 
>> simpleslides. The fonts did not work. Then I tried complexslides. The 
>> modules work fine, the fonts do not. I then updated to the latest bèta: 
>> luatools — generate, context —generate, etc. No improvement.
>> 
>> Through mtxrun —script fonts I can see which fonts are accessible to 
>> Context. There things are probably going wrong, yet I do not know what. It 
>> appears that Context does not find the local fonts, and the system fonts 
>> only partially.
>> 
>> I work on OS X, Context versie: 2017.04.27 01:00
>> /Applications/ContextStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv
>> 
>> Adjustments of texmf.cnf:
>> /Applications/ContextStandalone/tex/texmf/web2c/texmf.cnf
>> OSFONTDIR =.;~/Library/Fonts//;/System/Library/Fonts
>> 
>> Thank you on beforehand for your help. It is much appreciated.
>> 
> Please use the newer \definfontfamily command (or write your own typescript) 
> to load
> fonts which aren’t supported out of the box because the last release of 
> simplefonts
> was 4 years and is no longer updated. The \definefontfamily command mentioned
> above has replaced the module and should be used instead.
> 
> %% begin example
> \definefontfamily[mainface][ss][Delicious]
> 
> \setupbodyfont[mainface]
> 
> \starttext
> This document uses the Delicious font.
> \stoptext
> %% end example
> 
> 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] simplefonts question

2016-01-14 Thread Wolfgang Schuster

Meer, Hans van der 
14. Januar 2016 um 14:49
How to set the calligraphic font in the simplefonts module?
With the instructions in the Wiki:

\usemodule[simplefonts]
\definefontfamily[fallbackfont][serif][lucidaot]
\definefontfamily[fallbackfont][sans][lucidaot]
\definefontfamily[fallbackfont][mono][lucidaot]
\definefontfamily[fallbackfont][math][lucidaot]
\setupbodyfont[fallbackfont]
\setcalligraphicfont[fallbackfont]

and got the following errors: (1) unknow font and (2) unknown definition.

open source > 6 > 12 > 
/Users/hansm/Applications/TeX-sources/context-29/tex/texmf-context/tex/context/base/type-imp-lucida-opentype.mkiv
close source > 6 > 12 > 
/Users/hansm/Applications/TeX-sources/context-29/tex/texmf-context/tex/context/base/type-imp-lucida-opentype.mkiv
fonts > defining > font with asked name 'unknown' is not found using 
lookup 'file'

fonts > defining > unknown font 'unknown', loading aborted
fonts > defining > unable to define 'unknown' as 
'fallbackfont-12pt-rm-tf-0--0'


hvdm-fig.tex: ! Undefined control sequence

l.11 \setcalligraphicfont
   [fallbackfont]


Why is ConTeXt able to use my Lucida font with simply 
\setupbodyfont[lucidaot] but does simplefont not?
You're using the wrong names for the fonts and there is also no need to 
load the simplefonts module.


\definefontfamily [mainface] [rm] [Lucida Bright OT]
\definefontfamily [mainface] [ss] [Lucida Sans OT]
\definefontfamily [mainface] [tt] [Lucida Sans Typewriter OT]
\definefontfamily [mainface] [mm] [Lucida Bright Math OT]
\definefontfamily [mainface] [hw] [Lucida Handwriting OT]
\definefontfamily [mainface] [cg] [Lucida Calligraphy OT]

\setupbodyfont[mainface]

\starttext

\rm\tf Roman \it Italic \bf Bold \bi BoldItalic \sc SmallCaps

\ss\tf Roman \it Italic \bf Bold \bi BoldItalic \sc SmallCaps

\tt\tf Roman \it Italic \bf Bold \bi BoldItalic \sc SmallCaps

\hw\tf Roman \it Italic \bf Bold \bi BoldItalic \sc SmallCaps

\cg\tf Roman \it Italic \bf Bold \bi BoldItalic \sc SmallCaps

\startformula
c^2 = a^2 + b^2
\stopformula

\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts question

2016-01-14 Thread massifr
> \definefontfamily [mainface] [rm] [Lucida Bright OT]
> \definefontfamily [mainface] [ss] [Lucida Sans OT]
> \definefontfamily [mainface] [tt] [Lucida Sans Typewriter OT]
> \definefontfamily [mainface] [mm] [Lucida Bright Math OT]
> \definefontfamily [mainface] [hw] [Lucida Handwriting OT]
> \definefontfamily [mainface] [cg] [Lucida Calligraphy OT]

What should I do to use \definefontfamily with GaramondPremierPro?
I have the otf files, but ConTeXt is not configured to use them by default.

This does not work:
\definefontfamily [mainface][rm][tf=file:GaramondPremrPro.otf]

ConTeXt can't find the otf file, even if it's in the same directory.
According to the wiki, it should work.

Best greetings,
Massi
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts not working with Debian 8.1

2015-06-22 Thread Mica Semrick
And after troubleshooting my shell further, something was inserting $OSFONTDIR. 
Everything is working now, sorry for the noise.

Best,
Mica

On June 22, 2015 12:23:35 AM PDT, Mica Semrick m...@silentumbrella.com wrote:
Hello list,

I'm having trouble getting system fonts to load with simplefont on
Debian 8.1. I'm not exactly sure how to troubleshoot this issue. This
worked when Debian Jessie was still 'testing' but now fails on a
machine it was working on and on a fresh install. All my fonts are in
~/.fonts and Libre Office Writer can see all the fonts and fc-list
shows them as well.

In my document, I'm loading fonts like this:

\definefontfamily [mainface] [rm] [EB Garamond]
\definefontfamily[mainface][sans][Gill Sans]

\setupbodyfont[mainface,11pt]
\setupbodyfontenvironment[default][em=italic]

The log file says:

fontspreloading modern-designsize (math)
fontstypescripts  unknown library 'modern-designsize'
fonts'fallback modern-designsize mm 11pt' is loaded
fontspreloading modern-designsize (mono)
fonts'fallback modern-designsize tt 11pt' is loaded
fontsdefining  font with asked name 'unknown' is not
found using lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as
'mainface-11pt-rm-tf-0--0'
fontsdefining  font with asked name 'unknown' is not
found using lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as
'mainface-11pt-mm-mr--3'
fontsdefining  font with asked name 'unknown' is not
found using lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as
'mainface-11pt-mm-mr--2'
fontsdefining  font with asked name 'unknown' is not
found using lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as
'mainface-11pt-mm-mr--1'
fontsdefining  font with asked name 'unknown' is not
found using lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as
'mainface-11pt-mm-mb--3'
fontsdefining  font with asked name 'unknown' is not
found using lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as
'mainface-11pt-mm-mb--2'
fontsdefining  font with asked name 'unknown' is not
found using lookup 'file'
fontsdefining  unknown font 'unknown', loading aborted
fontsdefining  unable to define 'unknown' as
'mainface-11pt-mm-mb--1'

Any direction I can take to troubleshoot this would be of great help!

Thank you for your time.

Best,
Mica
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts vs typescripts

2015-05-21 Thread Wolfgang Schuster

 Am 21.05.2015 um 22:14 schrieb Pablo Rodriguez oi...@gmx.es:
 
 On 05/21/2015 09:40 PM, david.boerschl...@juno.com wrote:
 
 I have the following:
 
 \setupbodyfontenvironment[default][em=italic,x=9.0pt,xx=8.0pt,a=12.0pt,b=14.0pt,c=16.0pt,d=18.0pt,e=24.0pt,small=8.0pt]
 
 Hi David,
 
 the numeric values for the options are scaling factors.
 
 These are relative sizes to the value set in \setupbodyfont (or 12pt by
 default, when none is set).
 
 So dimension units doesn’t make any sense in these options.
 
 Your command should read:
 
\setupbodyfontenvironment
[default]
[em=italic,
 x=0.9,
 xx=0.8,
 b=1.4,
 c=1.6,
 d=1.8,
 e=2.4,
 small=0.8]
 
 Removed a size, since its value isn’t different from the default.


When you change the values for a certain font size you can use dimensions.

\setupbodyfontenvironment
  [10pt]
  [x=8.0pt,
   a=20.0pt]

\setupbodyfont[10pt]

\starttext
text {\tfa text} {\tfx text}
\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts vs typescripts

2015-05-21 Thread Pablo Rodriguez
On 05/21/2015 09:40 PM, david.boerschl...@juno.com wrote:
 
 I have the following:
 
 \setupbodyfontenvironment[default][em=italic,x=9.0pt,xx=8.0pt,a=12.0pt,b=14.0pt,c=16.0pt,d=18.0pt,e=24.0pt,small=8.0pt]

Hi David,

the numeric values for the options are scaling factors.

These are relative sizes to the value set in \setupbodyfont (or 12pt by
default, when none is set).

So dimension units doesn’t make any sense in these options.

Your command should read:

\setupbodyfontenvironment
[default]
[em=italic,
 x=0.9,
 xx=0.8,
 b=1.4,
 c=1.6,
 d=1.8,
 e=2.4,
 small=0.8]

Removed a size, since its value isn’t different from the default.

I hope iit helps,


Pablo
-- 
http://www.ousia.tk
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts vs typescripts

2015-05-21 Thread david.boerschl...@juno.com

I have the following:

\setupbodyfontenvironment[default][em=italic,x=9.0pt,xx=8.0pt,a=12.0pt,b=14.0pt,c=16.0pt,d=18.0pt,e=24.0pt,small=8.0pt]

Per: http://wiki.contextgarden.net/Font_Switching

However ConTeXt has a syntax error.

! Missing \endcsname inserted
! You can't use `\dimexpr' in restricted horizontal mode

If I change the above to just:
\setupbodyfontenvironment[default][em=italic]

then the .tex compiles and runs and generates PDF output, albeit with the wrong 
point sizes.

Please advise!Thanks.

David Boerschlein
(214) 412-3275 home office land
(585) 278-4687 cell
www.linkedin.com/in/davidboerschlein

High School Yearbooks
View Class Yearbooks Online Free. Reminisce  Buy a Reprint Today!
http://thirdpartyoffers.juno.com/TGL3141/555e34d459b534d357cbst01duc
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts vs typescripts

2015-05-13 Thread david.boerschl...@juno.com
I am still not able to set up the Noto fonts due mostly to sketchy/lack-of 
documentation on setting up ConTeXt fonts.

I understand I need to set up typescripts but do not understand the syntax 
and/or semantics of the different commands and how to map the font names/paths 
(otf and ttf files) to reference them in the typescripts.   I would like to 
create a utility that will create the typescript file for MKIV from the otf/ttf 
files themselves.

Please provide me with any help/documentation.

Thanks.

David Boerschlein
(214) 412-3275 home office land
(585) 278-4687 cell
www.linkedin.com/in/davidboerschlein


-- Original Message --
From: david.boerschl...@juno.com david.boerschl...@juno.com
To: ntg-context@ntg.nl
Subject: simplefonts vs typescripts
Date: Mon, 4 May 2015 16:26:43 GMT

I have been trying for weeks to set up the Google Noto fonts for ConTeXt.   I 
have tried (but do not understand all the syntax and parameters of) typescripts 
and simplefonts.

It seems that I probably should gravitate towards typescripts because the 
typescripts seem to be what comes with the distribution of other fonts.

Is there detailed documentation describing all the parameters in detail and 
giving examples?   All I found is some vague examples without any explanations 
in the contextgarden.net wiki.

Is there a tool that I can use to look at the .ttf or .otf file and discern the 
values I need to put into the typescripts?   Is there a tool to generate 
typescripts from the .ttf and/or .otf files or would one be easy for me to 
write in say Korn, Perl, or Python?

Please advise!

Thanks.

David Boerschlein
(214) 412-3275 home office land
(585) 278-4687 cell
www.linkedin.com/in/davidboerschlein

What Apple Didn’t say
One little-known tech company behind Apple is positioned to dominate.
http://thirdpartyoffers.juno.com/TGL3141/5553777a5d1b4777a2cf6st03duc
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts vs typescripts

2015-05-13 Thread Wolfgang Schuster

 Am 13.05.2015 um 18:09 schrieb david.boerschl...@juno.com:
 
 I am still not able to set up the Noto fonts due mostly to sketchy/lack-of 
 documentation on setting up ConTeXt fonts.
 
 I understand I need to set up typescripts but do not understand the syntax 
 and/or semantics of the different commands and how to map the font 
 names/paths (otf and ttf files) to reference them in the typescripts.   I 
 would like to create a utility that will create the typescript file for MKIV 
 from the otf/ttf files themselves.


You don’t have to write a typescript to use the fonts when you use the 
\definefontfamily command.

When you use Windows or Mac OS on your Computer you can put the files in the 
normal font folder
and update the font database with “mtxrun —script font —reload”. After wards 
the following font
setuos in your document is enough to use Noto Serif and Sans. When you use 
Linux you can
either put the font files in your local TeX directory or set the OSFONTDIR 
variable before
you update the font database.


\definefontfamily [noto] [rm] [Noto Serif]
\definefontfamily [noto] [ss] [Noto Sans]
\definefontfamily [noto] [mm] [TeX Gyre Pagella Math]

\setupbodyfont[noto]

\starttext

\rm Noto Serif {\it Italic} and {\bf Bold}

\ss Noto Sans {\it Italic} and {\bf Bold}

\stoptext


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts vs typescripts

2015-05-13 Thread Hans Hagen

On 5/13/2015 6:09 PM, david.boerschl...@juno.com wrote:

I am still not able to set up the Noto fonts due mostly to sketchy/lack-of 
documentation on setting up ConTeXt fonts.

I understand I need to set up typescripts but do not understand the syntax 
and/or semantics of the different commands and how to map the font names/paths 
(otf and ttf files) to reference them in the typescripts.   I would like to 
create a utility that will create the typescript file for MKIV from the otf/ttf 
files themselves.

Please provide me with any help/documentation.


In addition to wolfgangs mail: there is not much science involved in 
typescripts, just take another type-imp-*.mkiv file as example ...


type-imp-noto.mkiv :

\starttypescriptcollection[noto]

\starttypescript [serif] [noto] [name]
\setups[font:fallback:serif]
\definefontsynonym
   [Serif]
   [file:notowhatever.ttf]
   [features=default]
\definefontsynonym [SerifBold]
   [file:notowhateverbold.ttf]
   [features=default]
\definefontsynonym
   [SerifItalic]
   [file:notowhateveritalic.ttf]
   [features=default]
\definefontsynonym
  [SerifBoldItalic]
  [file:notowhateverbolditalic.ttf]
  [features=default]
\stoptypescript

\starttypescript[noto]
\definetypeface [noto] [rm] [serif] [noto]   [default]
\definetypeface [noto] [ss] [sans]  [dejavu] [default]
\definetypeface [noto] [tt] [mono]  [dejavu] [default]
\definetypeface [noto] [mm] [math]  [times]  [default]
\stoptypescript

\stoptypescriptcollection

\setupbodyfont[noto]

You need to figure out the right filenames yourself (not that hard as 
you downloaded them I assume). But simplefonts is less lines of code and 
you only need such a typescript if you want to have long term guarantees 
(as it depends less on heuristics)



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts vs typescripts

2015-05-04 Thread Hans Hagen

On 5/4/2015 6:26 PM, david.boerschl...@juno.com wrote:

I have been trying for weeks to set up the Google Noto fonts for ConTeXt.   I 
have tried (but do not understand all the syntax and parameters of) typescripts 
and simplefonts.

It seems that I probably should gravitate towards typescripts because the 
typescripts seem to be what comes with the distribution of other fonts.

Is there detailed documentation describing all the parameters in detail and 
giving examples?   All I found is some vague examples without any explanations 
in the contextgarden.net wiki.

Is there a tool that I can use to look at the .ttf or .otf file and discern the 
values I need to put into the typescripts?   Is there a tool to generate 
typescripts from the .ttf and/or .otf files or would one be easy for me to 
write in say Korn, Perl, or Python?

Please advise!


- if you know the names of the fonts simplefonts is the way for a fast setup

- otherwise you can look at e.g. type-imp-mscore and make a typescript 
(in mkiv normally only a few lines so having that scripted is (1) 
overkill and (2) duplicates simplefonts)


typescripts used with filenames are a robust way to be future proof as 
fonts can change (for the same reason even system fonts can be be copied 
to tex/texmf-fonts/fonts/data)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simplefonts: light font weight?

2014-12-08 Thread Wolfgang Schuster

 Am 08.12.2014 um 10:40 schrieb Philipp A. flying-sh...@web.de:
 
 Hi,
 
 simplefonts has the following list of weights: condensed, light, normal, 
 medium, heavy (source 
 http://tug.ctan.org/macros/context/contrib/context-simplefonts/tex/context/third/simplefonts/t-simplefonts.mkiv)
 
 how do i use them as argument for any kind of style named argument, e.g. 
 `\setuphead[chapter][style=light]` doesn’t work.

The style keys for \setuphead etc. are unrelated to the styles in simplefonts.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] SimpleFonts

2014-05-20 Thread Mikael P. Sundqvist
On Wed, May 21, 2014 at 5:32 AM,  hwit...@gmail.com wrote:
 I just installed the standalone context and tried to typeset a document 
 which uses simplefonts but the resolver indicates that simplefonts is not 
 found.  This isn't surprising, but I need to learn how to install simplefonts 
 to use with the standalone.

 Use adding  --modules all  as an option to  first-setup.sh do this?


 Any advice is appreciated.


I think that functionality is now included in the core, see the top of the page

http://wiki.contextgarden.net/simplefonts

to get a hint of the new syntax.

/Mikael
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts (new) fallback issue with Linux Libertine O

2013-11-24 Thread Wolfgang Schuster

Am 22.11.2013 um 18:08 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com:

 
 Am 22.11.2013 um 05:00 schrieb Rik amphib...@gmail.com:
 
 Fallbacks (at least the range I tested) do not work with the roman face of 
 Linux Libertine O in the new (core) simplefonts implementation. I first 
 thought that this might be a Libertine issue, but further testing makes me 
 suspect it may be a simplefonts issue. Or perhaps I have used the wrong 
 syntax with the new implementation.
 
 I can reproduce it and it does also happen with a typescript only solution 
 (depends on how you define the fallback font) but it seems to happen only 
 with the Linux Libertine font.


Below is a minimal example which demonstrates the problem. The version where 
with \definefontsynonym is also
used by simplefonts and this is where the fallback font isn’t used for 
Libertine Regular, you can also see

fontsdefining  font with asked name 'GentiumPlus' is not 
found using lookup 'file'
fontsdefining  unknown font 'GentiumPlus', loading aborted

as message on the console. In the second case where I set the fallback font 
with \definefontfallback you get
the fallback font for Libertine Regular.


% one: load the fallback font from a synonym

\definefontsynonym [GentiumPlus] [file:gentiumplusr.ttf] [features=default]

\definefontfallback [libertine-fallback-1] [GentiumPlus] [0x02053]

\definefontsynonym [LibertineOneRegular] [file:linlibertiner.otf]  
[features=default,fallbacks=libertine-fallback-1]
\definefontsynonym [LibertineOneItalic]  [file:linlibertineri.otf] 
[features=default,fallbacks=libertine-fallback-1]

% two: direct loading of the fallback font

\definefontfallback [libertine-fallback-2] [file:gentiumplusr.ttf*default] 
[0x02053]

\definefontsynonym [LibertineTwoRegular] [file:linlibertiner.otf]  
[features=default,fallbacks=libertine-fallback-2]
\definefontsynonym [LibertineTwoItalic]  [file:linlibertineri.otf] 
[features=default,fallbacks=libertine-fallback-2]

\starttext
\starttabulate
\NC One Regular \EQ \definedfont[LibertineOneRegular] ⁓⁗ \NC\NR
\NC One Italic  \EQ \definedfont[LibertineOneItalic]  ⁓⁗ \NC\NR
\NC Two Regular \EQ \definedfont[LibertineTwoRegular] ⁓⁗ \NC\NR
\NC Two Italic  \EQ \definedfont[LibertineTwoItalic]  ⁓⁗ \NC\NR
\stoptabulate

\stoptext


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simplefonts (new) fallback issue with Linux Libertine O

2013-11-22 Thread Wolfgang Schuster

Am 22.11.2013 um 05:00 schrieb Rik amphib...@gmail.com:

 Fallbacks (at least the range I tested) do not work with the roman face of 
 Linux Libertine O in the new (core) simplefonts implementation. I first 
 thought that this might be a Libertine issue, but further testing makes me 
 suspect it may be a simplefonts issue. Or perhaps I have used the wrong 
 syntax with the new implementation.

I can reproduce it and it does also happen with a typescript only solution 
(depends on how you define the fallback font) but it seems to happen only with 
the Linux Libertine font.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts: defining a fallback for a non-main font

2013-11-15 Thread Lars Huttar
On 11/14/2013 5:06 PM, Wolfgang Schuster wrote:
 Am 14.11.2013 um 22:52 schrieb Lars Huttar lars_hut...@sil.org:

 ... But then I have another font for the title:
 \definesimplefont[titleface][Gentium Basic][size=40pt]


 How do I set a fallback for it?
 ...
 There is no support for this with the old version of the module.


For posterity, here is how I worked around it:

\usemodule[simplefonts]

% The main font for text:
\setmainfont[Gentium Book Basic]

\setmainfontfallback[Gentium Plus][range={ipaextensions}, force=yes,
rscale=auto]

% The font for the title:
\def\titlefont{Gentium Basic}

\starttext

% Temporarily change the main font, while keeping the main font fallback:
{ \setmainfont[\titlefont] \switchtobodyfont[40pt] Title with a fancy
ɠlyph }


% Back to our previously defined main font:

Body text ...

\stoptext


Lars

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts: defining a fallback for a non-main font

2013-11-15 Thread Aditya Mahajan

Just a minor improvement:

On Fri, 15 Nov 2013, Lars Huttar wrote:


% Temporarily change the main font, while keeping the main font fallback:
{ \setmainfont[\titlefont] \switchtobodyfont[40pt] Title with a fancy
ɠlyph }


Make that {\setmainfont[...] ... \endgraf}

Otherwise, the interline space will not be calculated correctly.

Aditya___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts: defining a fallback for a non-main font

2013-11-15 Thread Lars Huttar
On 11/15/2013 11:50 AM, Aditya Mahajan wrote:
 Just a minor improvement:

 On Fri, 15 Nov 2013, Lars Huttar wrote:

 % Temporarily change the main font, while keeping the main font
 fallback:
 { \setmainfont[\titlefont] \switchtobodyfont[40pt] Title with a fancy
 ɠlyph }

 Make that {\setmainfont[...] ... \endgraf}

 Otherwise, the interline space will not be calculated correctly.

Thanks. It actually didn't seem to make any difference, but I put it in.

Lars

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts: defining a fallback for a non-main font

2013-11-14 Thread Wolfgang Schuster

Am 14.11.2013 um 22:52 schrieb Lars Huttar lars_hut...@sil.org:

 Hi again,
 
 I'm using simplefonts (TeX Live 2013 version) and I have a main font:
 
 \setmainfont[Gentium Book Basic]
 
 and I can set a fallback for it,
 
 \setmainfontfallback[Gentium Plus][range={ipaextensions}, force=yes,
 rscale=auto]
 
 and that works.
 
 
 But then I have another font for the title:
 \definesimplefont[titleface][Gentium Basic][size=40pt]
 
 
 How do I set a fallback for it?
 
 After looking at the source code for simplefonts, I tried:
 
 % undefined cs: \definesimplefontfallback[titleface][Gentium
 Plus][range={ipaextensions}, force=yes, rscale=auto]
 
 % undefined cs: \fontfallback[titleface][Gentium
 Plus][range={ipaextensions}, force=yes, rscale=auto]
 
 % undefined cs: \definefallbackfont[titleface][Gentium
 Plus][range={ipaextensions}, force=yes, rscale=auto]
 
 
 But they all gave undefined control sequence errors.
 
 
 I can work around the problem by setting the main font before the title,
 using the main font for the title, and then changing the main font after
 the title is done. But that seems kludgy.

There is no support for this with the old version of the module.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts: defining a fallback for a non-main font

2013-11-14 Thread Lars Huttar
On 11/14/2013 5:06 PM, Wolfgang Schuster wrote:
 There is no support for this with the old version of the module.


OK, good to know. Thanks.
Lars

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts and inherited style

2013-11-11 Thread Wolfgang Schuster


   	   
   	Joshua Krämer  
  11. November 2013
 17:52
  Dear 
list members,I need a second font in my text for the purpose of 
mark-up.  This font is defined with \definesimplefonttypeface.  If I
 switch to a font variant like bold and afterwards to the second 
font, the second font doesn't inherit this style.  It only works the
 other way around (switching to the second font first, then to 
another style).  In the following example, the whole section title 
should be typeset in bold, but the part using the second font is 
typeset in the regular style.  How can I make it inherit the bold 
style?Thank you,Joshua Krämer\usemodule[simplefonts]\setmainfont[dejavuserif]\definesimplefonttypeface[Secondfont][dejavusans]\setuphead[section][style={\tf\bf}]\starttext\section{One
 {\Secondfont Two} Three}\input zapf\stoptext


Old version of the simplefonts module:

\usemodule[simplefonts]

\setmainfont[DejaVu Serif]
\setsansfont[DejaVu Sans]

\setuphead[section][style={\tf\bf}]

\starttext
\section{One {\ss Two} Three}
\input zapf
\stoptext


New version of the simplefonts module:

\setupfontfamily [serif] [DejaVu Serif]
\setupfontfamily [sans]  [DejaVu Sans]

\setuphead[section][style={\tf\bf}]

\starttext
\section{One {\ss Two} Three}
\input zapf
\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simplefonts and inherited style

2013-11-11 Thread Joshua Krämer
Dear Wolfgang,

thank you, this does the trick.  I didn't try \setsansfont, because in 
reality I don't use serif and sans fonts but blackletter and roman.  Does 
a more general solution exist?  If not, I will misuse \setsansfont.

By the way, is this new simplefonts version only available in the context 
beta?  I've made an update but still the new commands don't work.

Kind regards,
Joshua Krämer

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simplefonts and inherited style

2013-11-11 Thread Wolfgang Schuster


   	   
   	Joshua Krämer  
  11. November 2013
 20:46
  Dear 
Wolfgang,thank you, this does the trick.  I didn't try 
\setsansfont, because in reality I don't use serif and sans fonts 
but blackletter and roman.  Does a more general solution exist?  If 
not, I will misuse \setsansfont.

Even though \rm is normally used for a serif font and \ss for a sans 
serif
font there is no rule which prevents you from using a blackletter etc. 
font
with these styles.

  
By the way, is this new simplefonts version only available in 
the context beta?  I've made an update but still the new commands 
don't work.
  

The new simplefonts module is part of the core (no external files are
required) and you need a recent beta to have it available.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simplefonts

2013-10-14 Thread Lars Huttar
Hi Wolfgang,

I'm doing an overhaul of font handling in our large project, and
wondering whether I should switch to simplefonts at this point.

Can you tell me, how mature is simplefonts? Is it ready for heavy-duty,
complex production use?

Also, is it superceding the standard ConTeXt font handling? That is,
should I expect to find better help available from this list for issues
with simplefonts? Will new development be focused more on simplefonts?

Thanks,
Lars


On 10/10/2013 2:02 PM, Wolfgang Schuster wrote:
 Hi all,

 I’m happy to announce a new version of the simplefonts code. Thew new version 
 of the code
 is a complete rewrite and brings many changes.

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simplefonts

2013-10-14 Thread Prashanth
Hi Wolfgang,

Thanks for the update. I have a question, and I came across a bug.

Question: I need some keywords in a distinctively different font, which
I accomplished by defining \kword as \definesimplefont[kword][DejaVu
Mono][size=13pt]. I looked through font-sel.mkvi, but I did not see any
way of implementing equivalents. (I still haven't learnt macros
properly, though.) Can you please give me a hint on how I can do this
with the latest fonts interface?

Bug: I prefer Euler font for math. This does not seem to work with the
latest fonts interface.

Best regards,
Prash


On 10/10/13 20:02, Wolfgang Schuster wrote:
 Hi all,

 I’m happy to announce a new version of the simplefonts code. Thew new version 
 of the code
 is a complete rewrite and brings many changes.

 1. The module is now part of the core and no external module is needed 
 anymore.

 2. The commands to select a font have changed to commands which fit better to 
 context normal syntax.

 3. I removed the keys to enable font expansion and protrusion, when you need 
 them use \definefontfeature.


 To use a font with the simplefonts code two ways are available. The first 
 method is to create
 one or more typefaces and load it with \setupbodyfont. A complete example for 
 this is:

 \definefontfamily [mainface] [serif] [DejaVu Serif]
 \definefontfamily [mainface] [sans]  [DejaVu Sans]
 \definefontfamily [mainface] [mono]  [DejaVu Sans Mono] [feature=none]
 \definefontfamily [mainface] [math]  [TeX Gyre Pagella Math]

 \setupbodyfont[mainface]

 \starttext
 \startlines
 \rm DejaVu Serif
 \ss DejaVu Sans
 \tt DejaVu Sans Mono
 \m{c^2 = a^2 + b^2}
 \stoplines
 \stoptext


 The second method is similar to the old commands of the simplefonts module 
 (e.g. \setmainfont)
 where the font is enabled after it was set and no \setupbodyfont is 
 necessary. Below is a example
 for this method but I recommend to avoid this method because it’s slow when 
 you set font a font
 for each style in your document.

 \setupfontfamily [serif] [DejaVu Serif]
 \setupfontfamily [sans]  [DejaVu Sans]
 \setupfontfamily [mono]  [DejaVu Sans Mono] [feature=none]
 \setupfontfamily [math]  [TeX Gyre Pagella Math]

 \starttext
 \startlines
 \rm DejaVu Serif
 \ss DejaVu Sans
 \tt DejaVu Sans Mono
 \m{c^2 = a^2 + b^2}
 \stoplines
 \stoptext


 Another feature of simplefonts is the ability to set a fallback font when you 
 need certain glyphs
 from a different font (e.g. for cyrillic ) which aren’t available in the 
 mainfont of the document.
 To set such a fallback font the code provides the \definefallbackfamily 
 command where you
 can set in the fourth argument the range for the replacement characters.

 \definefallbackfamily [mainface] [serif] [DejaVu Serif] 
 [range=cyrillic,force=yes]
 \definefontfamily [mainface] [serif] [TeX Gyre Pagella]

 \setupbodyfont[mainface]

 \starttext

 \input knuth

 Традиционная систематика лишайников оказывается во многом условна и

 \stoptext


 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simplefonts

2013-10-14 Thread Hans Hagen

On 10/14/2013 5:17 PM, Lars Huttar wrote:

Hi Wolfgang,


let me try to answer ...


I'm doing an overhaul of font handling in our large project, and
wondering whether I should switch to simplefonts at this point.


Tor a a real long term robust font usage it all depends on where you 
store your fonts: if you rely on the operating systems setup you could 
burn yourself in the long run with any setup, unless you use typescripts 
+ filenames but when you keep fonts in your project tree you can use 
selectfont (aka simplefonts) when it does the right job for you.



Can you tell me, how mature is simplefonts? Is it ready for heavy-duty,
complex production use?


The font system is sort of layered:

-- low level \font commands: most robust
-- \definefont: wrapper around this
-- typescripts: combines fonts in groups, create abstraction
-- fallbacks: combine fonts into one
-- typefaces: sets up a collection of fonts

In identifying fonts there are methods like file, name, spec and file is 
the most robust.


Selectfonts runs on top of all this, and given that its way of doing it 
has been around for a while (apart from the current implementation being 
done from scratch), it's pretty mature. If things change in the low 
level api (unlikely) I'm sure selectfont will adapt which is also easier 
now that it's in the core.



Also, is it superceding the standard ConTeXt font handling? That is,
should I expect to find better help available from this list for issues
with simplefonts? Will new development be focused more on simplefonts?


It is not a font mechanism, but a wrapper that generates unseen the 
standard commands. So, it runs on top of the font mechanism and not 
alongside; it's not a matter of replacing but of convenience. If you 
have a crappy font setup or use fuzzy names of use fonts that have 
confusing properties, nothing will help and you can't blame selectfont, 
but it will do its best to help you as much as possible.


Improvements might be possible in the heuristics, but I'm pretty sure 
that Wolfgang already covered most of it. If there are issues, then the 
challenge is to see if they are general enough to become part of the 
heuristics. In that process improvements might migrate into other places.


As it's now in the core, you can probably expect more of the (mw) 
examples to use it which is educational too.


(Btw, this new modules is a nice examples of hybrid coding.)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts

2013-10-14 Thread Wolfgang Schuster

Am 14.10.2013 um 18:38 schrieb Prashanth prash.n@gmail.com:

 Hi Wolfgang,
 
 Thanks for the update. I have a question, and I came across a bug.
 
 Question: I need some keywords in a distinctively different font, which I 
 accomplished by defining \kword as \definesimplefont[kword][DejaVu 
 Mono][size=13pt]. I looked through font-sel.mkvi, but I did not see any way 
 of implementing equivalents. (I still haven't learnt macros properly, 
 though.) Can you please give me a hint on how I can do this with the latest 
 fonts interface?

I’m not bringing it back but you can achieve the same by defining a new 
typeface/family and refer to a certain alternative of this typeface with the 
\classfont command.

\definefontfamily[keywords][ss][DejaVu Sans Mono]

\definefont[kword][\classfont{keywords}{Sans} at 13pt]

\definehighlight[keyword][style=kword]

\starttext
Text font \keyword{keyword font}
\stoptext

 Bug: I prefer Euler font for math. This does not seem to work with the latest 
 fonts interface.


The name of the font is “Neo Euler”:

\definefontfamily[mainface][rm][TeX Gyre Pagella]
\definefontfamily[mainface][mm][Neo Euler]

\setupbodyfont[mainface]

\starttext
Text font $math font$
\stoptext

You can also use the predefined typescript which has the name “eulernova”:

\definefontfamily[mainface][rm][TeX Gyre Pagella]
\definefontfamily[mainface][mm][eulernova]

\setupbodyfont[mainface]

\starttext
Text font $math font$
\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts

2013-10-13 Thread Zhichu Chen

On 10/13/2013 01:39 AM, Wolfgang Schuster wrote:


Am 12.10.2013 um 15:04 schrieb Zhichu Chen zhichu.c...@gmail.com 
mailto:zhichu.c...@gmail.com:



Hi Wolfgang,

Good to know that, but I might have some questions.


On Fri, Oct 11, 2013 at 2:02 AM, Wolfgang Schuster 
wolfgang.schus...@gmail.com mailto:wolfgang.schus...@gmail.com wrote:


Hi all,

\definefallbackfamily [mainface] [serif] [DejaVu Serif]
[range=cyrillic,force=yes]

What if I want to use the CJK font? The code in font-sel.mkvi hints 
I could use range=chinese but it didn't work. I have to use interval 
{0x00400-0x2FA1F} explicitly.


When you take a look into char-def.lua you can see names certain 
character ranges and “range=cyrillic”

used such a name.

For a chinese font you need 
“range={cjkunifiedideographs,cjkunifiedideographsextensiona,…}.
Because the list with names is very long you do this setup only once 
with the \definefontfamilypreset

command, e.g.

\definefontfamilypreset[chinese][range={cjkunifiedideographs,cjkunifiedideographsextensiona,…}]

and load this setup when you set the font with 
\definefontfamilyfallback, e.g.


  \definefontfamilyfallback[typeface][style][font][preset=chinese]

For the moment I added three presets “chinese”, “japanese” and 
“korean” but they need better
names, e.g. “range:chinese” because there could be also 
“features:chinese” etc.
I get it now. I can put range and features of the fallback fonts in the 
preset.


And how can I assign the boldfont, italicfont and bolditalicfont? I'm 
currently using the Adobe Song Std as the regular font but it didn't 
come with a bold version or else, hence I might need this feature.


The module provides keys to apply a certain font and feature for each 
alternative (upright, italic etc.)

of a font, a complete list with all keys is shown in the table below.

---
| Alternative | Font| Feature |
|-|
| tf  | regularfont | regularfeatures |
| it  | italicfont  | italicfeatures  |
| sl  | slantedfont | slantedfeatures |
| bf  | boldfont| boldfeatures|
| bi  | bolditalicfont  | bolditalicfeatures  |
| bs  | boldslantedfont | boldslantedfeatures |
| sc  | smallcapsfont   | smallcapsfeatures   |
---

The feature-keys expect the name from the \definefontfeature command, 
when you don’t
specify a feature to a certain alternative the value from the 
“features” key is used.


When you want to set a certain font for a alternative there are 
different ways, I’m going
to show the different ways with a few examples where I change the font 
for italic.
Thanks for the descriptions. I have made a small test and turns out the 
regularfont has to be assigned to something or the other xxxfonts 
won't have any effects.


Here's my code:
=
\definefallbackfamily [mainface] [serif] [adobesongstd]
  [range={0x00400-0x2FA1F}%
  ,regularfont=name:adobesongstdlight%
  ,italicfont=name:adobefangsongstdregular%
  ,boldfont=name:adobeheitistdregular%
  ,bolditalicfont=name:adobekaitistdregular%
  ,force=yes%
  ,features=song%
  ]
=
and if I remove the regularfont=... line, the boldface Chinese 
characters will use the Adobe Song Std font as well. Same thing happened 
when I used the preset=xxx option which I don't know if it is intended 
to behave like that, by the way.


Oh, and off the topic, can I use effect to assign the fonts? Like if I 
have defined

=
\defineeffect[mybold][alternative=both,rulethickness=\dimexpr\bodyfontsize/10\relax]
=
I would like to use this effect to apply to my bold fonts, maybe:
=
\setupfontfamily [serif] [DejaVu Serif] [boldfont=effect:mybold]
=
I know this has nothing to do with this module. I just thought this 
might be interesting.


1. Use the filename of a font. With the “file:” prefix you can the 
tell the module
to look for a file with the given name, when the file isn’t found the 
font from
the tf-alternative is used. The file-method is also used when you omit 
the prefix.


\setupfontfamily [serif] [DejaVu Serif] [italicfont=file:dejavuserifbold]

\starttext
Regular and \it Italic
\stoptext

2. Use a certain style. When you use the “style: ”prefix the module 
looks for a certain

style of the requested font.

\setupfontfamily [serif] [DejaVu Serif] [italicfont=style:bolditalic]

\starttext
Regular and \it Italic
\stoptext

3. Search for a font with a certain name. When you use the “name:” 
prefix the module
looks for a font with the requested name. Names are internal values of 
a font 

Re: [NTG-context] Simplefonts

2013-10-13 Thread Wolfgang Schuster

Am 13.10.2013 um 11:56 schrieb Zhichu Chen zhichu.c...@gmail.com:

 Thanks for the descriptions. I have made a small test and turns out the 
 regularfont has to be assigned to something or the other xxxfonts won't 
 have any effects.
 
 Here's my code:
 =
 \definefallbackfamily [mainface] [serif] [adobesongstd]
   [range={0x00400-0x2FA1F}%
   ,regularfont=name:adobesongstdlight%
   ,italicfont=name:adobefangsongstdregular%
   ,boldfont=name:adobeheitistdregular%
   ,bolditalicfont=name:adobekaitistdregular%
   ,force=yes%
   ,features=song%
   ]
 =
 and if I remove the regularfont=... line, the boldface Chinese characters 
 will use the Adobe Song Std font as well. Same thing happened when I used the 
 preset=xxx option which I don't know if it is intended to behave like that, 
 by the way. 

I can fit this, it’s a side effect for font families with a single font, e.g. 
Adobe Song Std which has only the Light font but no files for regular, bold etc.

 Oh, and off the topic, can I use effect to assign the fonts? Like if I have 
 defined
 =
 \defineeffect[mybold][alternative=both,rulethickness=\dimexpr\bodyfontsize/10\relax]
 =
 I would like to use this effect to apply to my bold fonts, maybe:
 =
 \setupfontfamily [serif] [DejaVu Serif] [boldfont=effect:mybold]
 =
 I know this has nothing to do with this module. I just thought this might be 
 interesting.

That’s not possible but you can the slant and extend options from 
\definefontfeature.

http://wiki.contextgarden.net/Simplefonts#Faking_italics_and_bold_fonts

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simplefonts

2013-10-12 Thread Zhichu Chen
Hi Wolfgang,

Good to know that, but I might have some questions.


On Fri, Oct 11, 2013 at 2:02 AM, Wolfgang Schuster 
wolfgang.schus...@gmail.com wrote:

 Hi all,

 I’m happy to announce a new version of the simplefonts code. Thew new
 version of the code
 is a complete rewrite and brings many changes.

 1. The module is now part of the core and no external module is needed
 anymore.

 2. The commands to select a font have changed to commands which fit better
 to context normal syntax.

 3. I removed the keys to enable font expansion and protrusion, when you
 need them use \definefontfeature.


 To use a font with the simplefonts code two ways are available. The first
 method is to create
 one or more typefaces and load it with \setupbodyfont. A complete example
 for this is:

 \definefontfamily [mainface] [serif] [DejaVu Serif]
 \definefontfamily [mainface] [sans]  [DejaVu Sans]
 \definefontfamily [mainface] [mono]  [DejaVu Sans Mono] [feature=none]

It seems the keyword here is features? Only the plural version works here
in my newest beta.

 \definefontfamily [mainface] [math]  [TeX Gyre Pagella Math]

 \setupbodyfont[mainface]

 \starttext
 \startlines
 \rm DejaVu Serif
 \ss DejaVu Sans
 \tt DejaVu Sans Mono
 \m{c^2 = a^2 + b^2}
 \stoplines
 \stoptext


 The second method is similar to the old commands of the simplefonts module
 (e.g. \setmainfont)
 where the font is enabled after it was set and no \setupbodyfont is
 necessary. Below is a example
 for this method but I recommend to avoid this method because it’s slow
 when you set font a font
 for each style in your document.

 \setupfontfamily [serif] [DejaVu Serif]
 \setupfontfamily [sans]  [DejaVu Sans]
 \setupfontfamily [mono]  [DejaVu Sans Mono] [feature=none]
 \setupfontfamily [math]  [TeX Gyre Pagella Math]

 \starttext
 \startlines
 \rm DejaVu Serif
 \ss DejaVu Sans
 \tt DejaVu Sans Mono
 \m{c^2 = a^2 + b^2}
 \stoplines
 \stoptext


 Another feature of simplefonts is the ability to set a fallback font when
 you need certain glyphs
 from a different font (e.g. for cyrillic ) which aren’t available in the
 mainfont of the document.
 To set such a fallback font the code provides the \definefallbackfamily
 command where you
 can set in the fourth argument the range for the replacement characters.

 \definefallbackfamily [mainface] [serif] [DejaVu Serif]
 [range=cyrillic,force=yes]

What if I want to use the CJK font? The code in  font-sel.mkvi hints I
could use range=chinese but it didn't work. I have to use interval
{0x00400-0x2FA1F} explicitly.

And how can I assign the boldfont, italicfont and bolditalicfont? I'm
currently using the Adobe Song Std as the regular font but it didn't come
with a bold version or else, hence I might need this feature.

 \definefontfamily [mainface] [serif] [TeX Gyre Pagella]

 \setupbodyfont[mainface]

 \starttext

 \input knuth

 Традиционная систематика лишайников оказывается во многом условна и

 \stoptext


 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___




-- 
Best Regards
Chen
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simplefonts

2013-10-12 Thread Wolfgang Schuster

Am 12.10.2013 um 15:04 schrieb Zhichu Chen zhichu.c...@gmail.com:

 Hi Wolfgang,
 
 Good to know that, but I might have some questions.
 
 
 On Fri, Oct 11, 2013 at 2:02 AM, Wolfgang Schuster 
 wolfgang.schus...@gmail.com wrote:
 Hi all,
 
 I’m happy to announce a new version of the simplefonts code. Thew new version 
 of the code
 is a complete rewrite and brings many changes.
 
 1. The module is now part of the core and no external module is needed 
 anymore.
 
 2. The commands to select a font have changed to commands which fit better to 
 context normal syntax.
 
 3. I removed the keys to enable font expansion and protrusion, when you need 
 them use \definefontfeature.
 
 
 To use a font with the simplefonts code two ways are available. The first 
 method is to create
 one or more typefaces and load it with \setupbodyfont. A complete example for 
 this is:
 
 \definefontfamily [mainface] [serif] [DejaVu Serif]
 \definefontfamily [mainface] [sans]  [DejaVu Sans]
 \definefontfamily [mainface] [mono]  [DejaVu Sans Mono] [feature=none]
 It seems the keyword here is features? Only the plural version works here 
 in my newest beta. 

Yes, the name of the key is “features”, the missing “s” was a typo.

 \definefontfamily [mainface] [math]  [TeX Gyre Pagella Math]
 
 \setupbodyfont[mainface]
 
 \starttext
 \startlines
 \rm DejaVu Serif
 \ss DejaVu Sans
 \tt DejaVu Sans Mono
 \m{c^2 = a^2 + b^2}
 \stoplines
 \stoptext
 
 
 The second method is similar to the old commands of the simplefonts module 
 (e.g. \setmainfont)
 where the font is enabled after it was set and no \setupbodyfont is 
 necessary. Below is a example
 for this method but I recommend to avoid this method because it’s slow when 
 you set font a font
 for each style in your document.
 
 \setupfontfamily [serif] [DejaVu Serif]
 \setupfontfamily [sans]  [DejaVu Sans]
 \setupfontfamily [mono]  [DejaVu Sans Mono] [feature=none]
 \setupfontfamily [math]  [TeX Gyre Pagella Math]
 
 \starttext
 \startlines
 \rm DejaVu Serif
 \ss DejaVu Sans
 \tt DejaVu Sans Mono
 \m{c^2 = a^2 + b^2}
 \stoplines
 \stoptext
 
 
 Another feature of simplefonts is the ability to set a fallback font when you 
 need certain glyphs
 from a different font (e.g. for cyrillic ) which aren’t available in the 
 mainfont of the document.
 To set such a fallback font the code provides the \definefallbackfamily 
 command where you
 can set in the fourth argument the range for the replacement characters.
 
 \definefallbackfamily [mainface] [serif] [DejaVu Serif] 
 [range=cyrillic,force=yes]
 What if I want to use the CJK font? The code in  font-sel.mkvi hints I 
 could use range=chinese but it didn't work. I have to use interval 
 {0x00400-0x2FA1F} explicitly.

When you take a look into char-def.lua you can see names certain character 
ranges and “range=cyrillic”
used such a name.

For a chinese font you need 
“range={cjkunifiedideographs,cjkunifiedideographsextensiona,…}.
Because the list with names is very long you do this setup only once with the 
\definefontfamilypreset
command, e.g.

  
\definefontfamilypreset[chinese][range={cjkunifiedideographs,cjkunifiedideographsextensiona,…}]

and load this setup when you set the font with \definefontfamilyfallback, e.g.

  \definefontfamilyfallback[typeface][style][font][preset=chinese]

For the moment I added three presets “chinese”, “japanese” and “korean” but 
they need better
names, e.g. “range:chinese” because there could be also “features:chinese” etc.

 And how can I assign the boldfont, italicfont and bolditalicfont? I'm 
 currently using the Adobe Song Std as the regular font but it didn't come 
 with a bold version or else, hence I might need this feature.

The module provides keys to apply a certain font and feature for each 
alternative (upright, italic etc.)
of a font, a complete list with all keys is shown in the table below.

---
| Alternative | Font| Feature |
|-|
| tf  | regularfont | regularfeatures |
| it  | italicfont  | italicfeatures  |
| sl  | slantedfont | slantedfeatures |
| bf  | boldfont| boldfeatures|
| bi  | bolditalicfont  | bolditalicfeatures  |
| bs  | boldslantedfont | boldslantedfeatures |
| sc  | smallcapsfont   | smallcapsfeatures   |
---

The feature-keys expect the name from the \definefontfeature command, when you 
don’t
specify a feature to a certain alternative the value from the “features” key is 
used.

When you want to set a certain font for a alternative there are different ways, 
I’m going
to show the different ways with a few examples where I change the font for 
italic.

1. Use the filename of a font. With the “file:” prefix you can the tell the 
module
to look for a file with the given name, when the file isn’t found the 

Re: [NTG-context] simplefonts doesn’t select the font

2013-08-08 Thread Wolfgang Schuster

Am 08.08.2013 um 20:01 schrieb Pablo Rodríguez oi...@web.de:

 Dear list,
 
 I have the following sample:
 
\starttext
\startbuffer[testbuffer]
\setuppapersize[A7]
\usemodule[simplefonts][size=10.5pt]
\setmainfont[TeX Gyre Pagella]
\starttext
This isn’t \TeX\ Gyre Pagella.
\stoptext
\stopbuffer
 
\typesetbuffer[testbuffer]
\stoptext
 
 Only with decimal font sizes, simplefonts (and probably the standard
 font mechanism [which I don’t know how to use it]) isn’t able to select
 the font in the buffer.

You can use \setupbodyfont[pagella] to load the font without the simplefonts 
module.

The problem with the wrong font can be solved by adding 
\definebodyfontenvironment[10.5pt] to the document.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts wiki page added

2013-06-24 Thread Sietse Brouwer
 I have added a new simplefonts page for new users. (I hope it isn't full
 of errors ;-).)

It's beautiful. A model of completeness and clarity, and I am
especially delighted that you took the trouble to remove the duplicate
info from [[Fonts in LuaTeX]]. Nice work!

I made two minor changes:
* Article names always start with a capital letter (this makes them
easier to guess), so I moved the page to [[Simplefonts]]
* for links to source files, you can use the `src` template:
`{{src|font-ini.lua}}`.

Neither of these changes diminishes the fact that you wrote an
excellent article.

Thanks, and all the best,
Sietse

On 23 June 2013 20:36, Pablo Rodríguez oi...@web.de wrote:
 Dear list,

 I have added a new simplefonts page for new users. (I hope it isn't full
 of errors ;-).)

 There may be some missing information, because I don't understand how
 the standard font handling in ConTeXt works.

 And I removed duplicated content from the font handling in LuaTeX
 (http://wiki.contextgarden.net/index.php?title=Fonts_in_LuaTeXaction=historysubmitdiff=21929oldid=20049).

 Just in case it helps,


 Pablo
 --
 http://www.ousia.tk
 ___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts wiki page added

2013-06-24 Thread Pablo Rodríguez
On 24/06/13 11:01, Sietse Brouwer wrote:
 I have added a new simplefonts page for new users. (I hope it isn't full
 of errors ;-).)
 
 It's beautiful. A model of completeness and clarity, and I am
 especially delighted that you took the trouble to remove the duplicate
 info from [[Fonts in LuaTeX]]. Nice work!

Many thanks for your kind words, Sietse.

 I made two minor changes:

I made another change: I added the compiled documents.

Is there any way to know which fonts are installed with ConTeXt
Standalone (which, I assume, is the distribution the wiki runs)?

Does any font include ancient Greek or Russian (to show the font
fallback mechanism)? Other scripts are fine, but then I'd need help for
that.

 * Article names always start with a capital letter (this makes them
 easier to guess), so I moved the page to [[Simplefonts]]

I avoided that since it was a module name. But you are the expert here.

 * for links to source files, you can use the `src` template:
 `{{src|font-ini.lua}}`.

Thanks, I didn’t know that.

Many thanks for your encouragement and your help,


Pablo
-- 
http://www.ousia.tk
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts wiki page added

2013-06-24 Thread Hans Hagen

On 6/24/2013 7:46 PM, Pablo Rodríguez wrote:

On 24/06/13 11:01, Sietse Brouwer wrote:

I have added a new simplefonts page for new users. (I hope it isn't full
of errors ;-).)


It's beautiful. A model of completeness and clarity, and I am
especially delighted that you took the trouble to remove the duplicate
info from [[Fonts in LuaTeX]]. Nice work!


Many thanks for your kind words, Sietse.


I made two minor changes:


I made another change: I added the compiled documents.

Is there any way to know which fonts are installed with ConTeXt
Standalone (which, I assume, is the distribution the wiki runs)?


mtxrun --script font --list --all --info

etc


Does any font include ancient Greek or Russian (to show the font
fallback mechanism)? Other scripts are fine, but then I'd need help for
that.


* Article names always start with a capital letter (this makes them
easier to guess), so I moved the page to [[Simplefonts]]


I avoided that since it was a module name. But you are the expert here.


* for links to source files, you can use the `src` template:
`{{src|font-ini.lua}}`.


Thanks, I didn’t know that.

Many thanks for your encouragement and your help,


Pablo




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts wiki page added

2013-06-24 Thread Pablo Rodríguez
On 24/06/13 19:51, Hans Hagen wrote:
 On 6/24/2013 7:46 PM, Pablo Rodríguez wrote:
 [...]
 Is there any way to know which fonts are installed with ConTeXt
 Standalone (which, I assume, is the distribution the wiki runs)?
 
 mtxrun --script font --list --all --info

Many thanks for your help, Hans.


Pablo
-- 
http://www.ousia.tk
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts wiki page added

2013-06-23 Thread Sander Maijers

On 23-06-13 20:36, Pablo Rodríguez wrote:

Dear list,

I have added a new simplefonts page for new users. (I hope it isn't full
of errors ;-).)

There may be some missing information, because I don't understand how
the standard font handling in ConTeXt works.

And I removed duplicated content from the font handling in LuaTeX
(http://wiki.contextgarden.net/index.php?title=Fonts_in_LuaTeXaction=historysubmitdiff=21929oldid=20049).

Just in case it helps,


Pablo



I think your initiative is very helpful!
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] SIMPLEFONTS MODULE

2013-04-29 Thread Pablo Rodríguez


On 29/04/13 11:40, MANUEL GONZALEZ SUAREZ wrote:
 Hello everyone.
 I have a doubt about the simplefonts module. I need to compose a text in
 Spanish and Greek. I would use a font for the text in Spanish
 (LinuxLibertine O) and another for the Greek text(Bosporos). How should
 you configure the simplefontsmodule?
 Thank you.

Hi Manuel,

\mainlanguage[es]
\setuplanguage[es][patterns={es,agr}]
\usemodule[simplefonts]
\setmainfontfallback[Bosporos][range={greekandcoptic, greekextended},
force=yes]
\setmainfont{LinuxLibertine O]
\starttext
\showhyphens{ἐλευθερία estimación}
\stoptext

If you load hyphenation patterns for ancient Greek and Spanish, you will
get correct hyphenation for both languages. (Hyphenation is right,
because this languages don't share any character.)

I hope it helps,


Pablo
-- 
http://www.ousia.tk
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts and math

2013-02-16 Thread Wolfgang Schuster

Am 15.02.2013 um 22:08 schrieb Pablo Rodríguez oi...@web.de:

 Hi Wolfgang,
 
 the following sample seems not to select the right math font:
 
 \usemodule[simplefonts]
 \setmainfont[TeX Gyre Pagella]
 \setmathfont[TeX Gyre Pagella]

\setmathfont[pagella]

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts and math

2013-02-16 Thread Herbert Voss

On 16.02.2013 09:23, Wolfgang Schuster wrote:


Am 15.02.2013 um 22:08 schrieb Pablo Rodríguez oi...@web.de:



the following sample seems not to select the right math font:

\usemodule[simplefonts]
\setmainfont[TeX Gyre Pagella]
\setmathfont[TeX Gyre Pagella]


\setmathfont[pagella]


that doesn't use the OpenType TeXGyrePagellaMath-Regular,
it uses the Type 1 version.

Herbert
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts generating slanted font?

2012-01-30 Thread Wolfgang Schuster

Am 29.01.2012 um 16:28 schrieb Pablo Rodríguez:

 Is there any way to get the roman font (and not the italics) slanted?

You have to change the font for slanted because the module use a italic
font when no slanted font is found.

\usemodule[simplefonts]
\definefontfeature[fakeslanted][default][slant=.35]
\setmainfont[TeX Gyre Pagella][slantedfont={* 
Regular},slantedfeatures=fakeslanted]
\starttext
{\sl slanted font} slanted font
\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts generating slanted font?

2012-01-30 Thread Pablo Rodríguez
On 01/30/2012 06:33 PM, Wolfgang Schuster wrote:
 Am 29.01.2012 um 16:28 schrieb Pablo Rodríguez:
 Is there any way to get the roman font (and not the italics) slanted?
 
 You have to change the font for slanted because the module use a italic
 font when no slanted font is found.

Thanks for the reply, Wolfgang.


Pablo
-- 
http://www.oudeis.tk
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts generating slanted font?

2012-01-29 Thread Pablo Rodríguez
On 01/29/2012 01:09 PM, Wolfgang Schuster wrote:
 
 Am 29.01.2012 um 13:04 schrieb Pablo Rodríguez:
 [...]

 But I don't get the slanted font working.

 What am I doing wrong here?
 
 Put \definefontfeature before \setmainfont and replace “slantedfont” by 
 “slantedfeatures”.

Thanks for the reply, Wolfgang.

There is a minor issue, probably caused by the fact that the font
already has italics.

\usemodule[simplefonts]
\definefontfeature[fakeslanted][default][slant=.35]
\setmainfont[TeX Gyre Pagella][slantedfeatures=fakeslanted]
\starttext
{\sl slanted font} slanted font
\stoptext

I wanted the roman font to be slanted, not the italic one (which is the
one that gets slanted).

Is there any way to get the roman font (and not the italics) slanted?

Thanks for your help,


Pablo
-- 
http://www.oudeis.tk
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts broken?

2011-12-18 Thread Wolfgang Schuster

Am 18.12.2011 um 15:24 schrieb Pablo Rodríguez:

 Hi there,
 
 after upgrading TL2011 today and having installed a new version of
 simplefonts, I cannot get this sample working:
 
 […]
 
 I don't know whether this happens because I'm not using the latest beta,
 but many TL2011 users will face the same situation.
 
 I had to restore the package to its previous version?

I’m aware of this and I already uploaded a new version yesterday but it
does always take a while till a mirrors have the new version.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts broken?

2011-12-18 Thread Pablo Rodríguez
On 12/18/2011 03:38 PM, Wolfgang Schuster wrote:
 Am 18.12.2011 um 15:24 schrieb Pablo Rodríguez:
 I don't know whether this happens because I'm not using the latest beta,
 but many TL2011 users will face the same situation.

 I had to restore the package to its previous version?
 
 I’m aware of this and I already uploaded a new version yesterday but it
 does always take a while till a mirrors have the new version.

Thanks for the fix, Wolfgang.

Sorry for overlooking the messages that reported the bug and the fix.


Pablo
-- 
http://www.ousia.tk
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts broken?

2011-12-18 Thread Kip Warner
On Sun, 2011-12-18 at 15:24 +0100, Pablo Rodríguez wrote:
 Hi there,
 
 after upgrading TL2011 today and having installed a new version of
 simplefonts, I cannot get this sample working:
 
 \usemodule[simplefonts]
 \setmainfont[TeX Gyre Pagella]
 \starttext
 \TeX
 \stoptext
 
 The error I get reads:
 
 ! Undefined control sequence.
 
 system   tex  error on line 2 in file a.tex: Undefined control
 sequence ...
 
  1 \usemodule[simplefonts]
  2   \setmainfont[TeX Gyre Pagella]
  3 \starttext
  4 \TeX
  5 \stoptext
  6
  7 \setuppapersize[A4]
  8 \setuppagenumbering[alternative=singlesided,location=middle]
  9 \starttext
 10 \showlayout
 11 \dorecurse{4}{\input dawkins \par \input knuth \par}
 12 \stoptext
 
 recently read \setmainfont
 
 l.2 \setmainfont
 [TeX Gyre Pagella]
 
 I don't know whether this happens because I'm not using the latest beta,
 but many TL2011 users will face the same situation.
 
 I had to restore the package to its previous version?
 
 Would you be so kind to test it, Wolfgang?
 
 Many thanks for your help,
 
 
 Pablo

I'm having the same issue.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts: math in headers

2011-12-16 Thread Hans Hagen

On 16-12-2011 06:25, Wolfgang Schuster wrote:


Wait for Hans to fix it and use in the meantime


Bold math os somewhat special as we have two variants:

1: a full bold bold math alternartive (only a few math fonts)
2: pseudoboldmath (where we take bold variants in a regular math font)

If you say:

\setfalse\completeboldmathstrategy

at the top of your file then only method (2) is used which is probabkly 
ok for the purpose. This method is actually provides in order to have a 
reasonable bolding in titles even if the font does not provide it. Of 
course bidirectional math adds another axis.


(It reminds me that I need to wrap this up in an article.)

The reason why the double loading fails is that the underlying machinery 
sees a difference between regular (pagella) and bold (still modern) and 
therefore decides that (1) can be applied. I'll try to make this 
heuristic more clever. Another solution (for WS eyes only: add 
\definefontsynonym[MathRomanBold][MathRoman] to the palatino mah 
definition).


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts: math in headers

2011-12-16 Thread Hans Hagen

On 16-12-2011 06:25, Wolfgang Schuster wrote:


Wait for Hans to fix it and use in the meantime


ok. fixed. I also added some tracing so that one can see how bold is 
treated (although that bit of code itself was ok):


\enabletrackers[math.families]

i'll upload a beta later today

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts: math in headers

2011-12-16 Thread Philipp A.
thanks for the effort. i can’t say i understand anything about fonts if i
judge from what the results of above suggestions look like:

\usemodule[simplefonts]

\definesimplefonttypeface[mainface][Cambria]
\definesimplefonttypeface[mainface][Ubuntu] [style=sans]
\definesimplefonttypeface[mainface][cambria][style=math]

\setupbodyfont[mainface]

Well: header math is in unbold cambria, body text in courier or something
like this, and the math font features are not used (tiny parentheses around
matrices, fraction denominators and numerators are shrunk instead of using
small glyphs)

\setfalse\completeboldmathstrategy

\usemodule[simplefonts]
\setmainfont[Cambria]
\setmathfont[Cambria]
\setsansfont[Ubuntu]

too slim parentheses, but this is to be expected :D

\definetypeface[mainface][rm][specserif][Cambria]
\definetypeface[mainface][ss][specsans] [Ubuntu]
\definetypeface[mainface][mm][math] [cambria]

\setupbodyfont[mainface]

exactly the same as above. slim parentheses in header math, rest working.
cambria in the last line only works when lowercase, but is case-insensitive
in the rm and ss lines. does this solution disable the
completeboldmathstrategy automatically?

thanks for the fixes,
philipp
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts: math in headers

2011-12-16 Thread Hans Hagen

On 16-12-2011 11:41, Philipp A. wrote:

thanks for the effort. i can’t say i understand anything about fonts if i
judge from what the results of above suggestions look like:

 \usemodule[simplefonts]

 \definesimplefonttypeface[mainface][Cambria]
 \definesimplefonttypeface[mainface][Ubuntu] [style=sans]
 \definesimplefonttypeface[mainface][cambria][style=math]

 \setupbodyfont[mainface]

Well: header math is in unbold cambria, body text in courier or something
like this, and the math font features are not used (tiny parentheses around
matrices, fraction denominators and numerators are shrunk instead of using
small glyphs)

 \setfalse\completeboldmathstrategy

 \usemodule[simplefonts]
 \setmainfont[Cambria]
 \setmathfont[Cambria]
 \setsansfont[Ubuntu]

too slim parentheses, but this is to be expected :D

 \definetypeface[mainface][rm][specserif][Cambria]
 \definetypeface[mainface][ss][specsans] [Ubuntu]
 \definetypeface[mainface][mm][math] [cambria]

 \setupbodyfont[mainface]

exactly the same as above. slim parentheses in header math, rest working.
cambria in the last line only works when lowercase, but is case-insensitive
in the rm and ss lines. does this solution disable the
completeboldmathstrategy automatically?


I dunno ... Wolfgang knows the logic behind simplefonts best

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts: math in headers

2011-12-16 Thread Wolfgang Schuster

Am 16.12.2011 um 11:41 schrieb Philipp A.:

 thanks for the effort. i can’t say i understand anything about fonts if i 
 judge from what the results of above suggestions look like:
 
 \usemodule[simplefonts]

 \definesimplefonttypeface[mainface][Cambria]
 \definesimplefonttypeface[mainface][Ubuntu] [style=sans]
 \definesimplefonttypeface[mainface][cambria][style=math]

 \setupbodyfont[mainface]
 
 Well: header math is in unbold cambria, body text in courier or something 
 like this, and the math font features are not used (tiny parentheses around 
 matrices, fraction denominators and numerators are shrunk instead of using 
 small glyphs)
 
 \setfalse\completeboldmathstrategy
 
 \usemodule[simplefonts]
 \setmainfont[Cambria]
 \setmathfont[Cambria]
 \setsansfont[Ubuntu] 

I’ll upload a new version of the module.

 too slim parentheses, but this is to be expected :D
 
 \definetypeface[mainface][rm][specserif][Cambria]
 \definetypeface[mainface][ss][specsans] [Ubuntu]
 \definetypeface[mainface][mm][math] [cambria]

 \setupbodyfont[mainface]
 
 exactly the same as above. slim parentheses in header math, rest working. 
 cambria in the last line only works when lowercase, but is case-insensitive 
 in the rm and ss lines. does this solution disable the 
 completeboldmathstrategy automatically?

Typescripts and typefaces are case sensitive and 
\definetypeface[…][…][math][cambria] is not the same as 
\definetypeface[…][…][math][Cambria].

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts: math in headers

2011-12-16 Thread Wolfgang Schuster

Am 16.12.2011 um 11:58 schrieb Hans Hagen:

 On 16-12-2011 11:41, Philipp A. wrote:
 \definetypeface[mainface][rm][specserif][Cambria]
 \definetypeface[mainface][ss][specsans] [Ubuntu]
 \definetypeface[mainface][mm][math] [cambria]
 
 \setupbodyfont[mainface]
 
 exactly the same as above. slim parentheses in header math, rest working.
 cambria in the last line only works when lowercase, but is case-insensitive
 in the rm and ss lines. does this solution disable the
 completeboldmathstrategy automatically?
 
 I dunno ... Wolfgang knows the logic behind simplefonts best

This method is a core function and unrelated to simplefonts.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts: math in headers

2011-12-16 Thread Hans Hagen

On 16-12-2011 14:18, Wolfgang Schuster wrote:


Am 16.12.2011 um 11:58 schrieb Hans Hagen:


On 16-12-2011 11:41, Philipp A. wrote:

 \definetypeface[mainface][rm][specserif][Cambria]
 \definetypeface[mainface][ss][specsans] [Ubuntu]
 \definetypeface[mainface][mm][math] [cambria]

 \setupbodyfont[mainface]

exactly the same as above. slim parentheses in header math, rest working.
cambria in the last line only works when lowercase, but is case-insensitive
in the rm and ss lines. does this solution disable the
completeboldmathstrategy automatically?


I dunno ... Wolfgang knows the logic behind simplefonts best


This method is a core function and unrelated to simplefonts.


It is somewhat .. say that you redefine a typeface in simplefonts and 
use a fontclass name that has already been used, in that case some 
caching starts interfering. I now reset a couple of things before a new 
typeface is defined.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts: math in headers

2011-12-15 Thread Philipp A.
Bump:

2011/12/9 Philipp A. flying-sh...@web.de

 hi, i have the following setup:

 \usemodule[simplefonts]
 \setmainfont[Cambria]
 \setsansfont[Ubuntu]
 \setmonofont[Envy Code R][regularfont=envycoder]
 \setmathfont[Cambria]

 \setuphead[section][style={\ss\bfb}]

 \starttext
 \section{Wat? $y=x^2$}
 \stoptext

 why is the math in the header typeset in computer modern instead of ubuntu
 and how do i fix it?

 PS: preferrably it should be bold, too. there is a wiki page, “Bold Math
 in Section Titleshttp://wiki.contextgarden.net/Bold_Math_in_Section_Titles”
 but it doesn’t explain how to do it with simplefonts.

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts: math in headers

2011-12-15 Thread Wolfgang Schuster

Am 15.12.2011 um 14:36 schrieb Philipp A.:

 Bump:
 
 2011/12/9 Philipp A. flying-sh...@web.de
 hi, i have the following setup:
 
 \usemodule[simplefonts]
 \setmainfont[Cambria]
 \setsansfont[Ubuntu]
 \setmonofont[Envy Code R][regularfont=envycoder]
 \setmathfont[Cambria]
 
 \setuphead[section][style={\ss\bfb}]
 
 \starttext
 \section{Wat? $y=x^2$}
 \stoptext
 
 why is the math in the header typeset in computer modern instead of ubuntu 
 and how do i fix it?
 
 PS: preferrably it should be bold, too. there is a wiki page, “Bold Math in 
 Section Titles” but it doesn’t explain how to do it with simplefonts.

There is no way for me to fix this because it’s a context bug.  You can see the 
effect with the following example, when you load LM before Pagella the heading 
use LM Math but when you load Pagella before LM Palatino math is used for the 
heading.

\setupbodyfont[modern]
\setupbodyfont[pagella]

\setuphead[section][style={\ss\bfb}]

\starttext
\section{Wat? $y=x^2$} $y=x^2$
\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts: math in headers

2011-12-15 Thread Philipp A.
2011/12/15 Wolfgang Schuster schuster.wolfg...@googlemail.com

 There is no way for me to fix this because it’s a context bug.  You can
 see the effect with the following example, when you load LM before Pagella
 the heading use LM Math but when you load Pagella before LM Palatino math
 is used for the heading.

 \setupbodyfont[modern]
 \setupbodyfont[pagella]

 \setuphead[section][style={\ss\bfb}]

 \starttext
 \section{Wat? $y=x^2$} $y=x^2$
 \stoptext

 Wolfgang



umm, so this happens because this bug exists and simplefonts sets the fonts
on module load?

is there a way to fix it or is an official fix on the way?

thanks for the info,
philipp
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simplefonts: math in headers

2011-12-15 Thread Wolfgang Schuster

Am 16.12.2011 um 00:13 schrieb Philipp A.:

 2011/12/15 Wolfgang Schuster schuster.wolfg...@googlemail.com
 There is no way for me to fix this because it’s a context bug.  You can see 
 the effect with the following example, when you load LM before Pagella the 
 heading use LM Math but when you load Pagella before LM Palatino math is used 
 for the heading.
 
 \setupbodyfont[modern]
 \setupbodyfont[pagella]
 
 \setuphead[section][style={\ss\bfb}]
 
 \starttext
 \section{Wat? $y=x^2$} $y=x^2$
 \stoptext
 
 Wolfgang
 
 
 umm, so this happens because this bug exists and simplefonts sets the fonts 
 on module load?

Yes.

 is there a way to fix it or is an official fix on the way?


Wait for Hans to fix it and use in the meantime

\usemodule[simplefonts]

\definesimplefonttypeface[mainface][Cambria]
\definesimplefonttypeface[mainface][Ubuntu] [style=sans]
\definesimplefonttypeface[mainface][cambria][style=math]

\setupbodyfont[mainface]

\setuphead[section][style={\ss\bfb}]

\starttext
\section{Wat? $y=x^2$} $y=x^2$
\stoptext

or

\definetypeface[mainface][rm][specserif][Cambria]
\definetypeface[mainface][ss][specsans] [Ubuntu]
\definetypeface[mainface][mm][math] [cambria]

\setupbodyfont[mainface]

\setuphead[section][style={\ss\bfb}]

\starttext
\section{Wat? $y=x^2$} $y=x^2$
\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simplefonts question

2011-11-14 Thread Wolfgang Schuster

Am 14.11.2011 um 07:00 schrieb Lutz Haseloff:

 2011/11/11 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 
 Am 11.11.2011 um 13:01 schrieb Lutz Haseloff:
 
 Hi Wolfgang,
 
 I'm looking for documentation for your handy module.
 
 Particularly i'd like to know all the options i can use for
 the commands \setmainfont and \setupsimplefonts.
 
 My goal is to use a font in my document in
 different sizes (say 12, 17 and 35pt) with adequate
 line spacing.
 
 Do you want a whole family in this size or only a single style of a font?
 
 I need Linux Libertine as Serif, Aller as SansSerif and Aller in 35pt
 for large titles with proper line spacing.
 
 My success so far:
 
 \definefontfeature[cond][default][extend=.8]
 \usemodule[simplefonts]
 \setmainfont[linuxlibertineo]
 \setsansfont[aller][features=cond]
 \mainlanguage[de]
 \starttext
 Dudelsackpfeifenmachergeselle
 
 {\it
 Dudelsackpfeifenmachergeselle }
 
 {\bf
 Dudelsackpfeifenmachergeselle }
 
 {\bi
 Dudelsackpfeifenmachergeselle }
 
 \ss
 Dudelsackpfeifenmachergeselle
 
 {\it
 Dudelsackpfeifenmachergeselle }
 
 {\bf
 Dudelsackpfeifenmachergeselle }
 
 {\bi
 Dudelsackpfeifenmachergeselle }
 \stoptext
 
 
 Now some questions remain:
 How can i set the size of the fonts?
 \setsansfont[aller][features=cond,size=14pt]
 seems not to work.
 How can i define the 35pt .8 condensed Aller?


Define a style for the heading after you have set the font for serif and sans 
serif with:

\definefont[TtitleFont][Sans at 35pt]

\setuphead[chapter][style=TitleFont]
%\setuphead[chapter][style=TitleFont,interlinespace=40pt]

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts question

2011-11-14 Thread Christian
  Hi Wolfgang,
 
  I'm looking for documentation for your handy module.
 
  Particularly i'd like to know all the options i can use for the
  commands \setmainfont and \setupsimplefonts.
 
  My goal is to use a font in my document in different sizes (say 12,
  17 and 35pt) with adequate line spacing.
 
  Do you want a whole family in this size or only a single style of a font?
 
 I need Linux Libertine as Serif, Aller as SansSerif and Aller in 35pt for 
 large
 titles with proper line spacing.
 
 My success so far:
 
 \definefontfeature[cond][default][extend=.8]
 \usemodule[simplefonts]
 \setmainfont[linuxlibertineo]
 \setsansfont[aller][features=cond]
 \mainlanguage[de]
 \starttext
 Dudelsackpfeifenmachergeselle
 
 {\it
 Dudelsackpfeifenmachergeselle }
 
 {\bf
 Dudelsackpfeifenmachergeselle }
 
 {\bi
 Dudelsackpfeifenmachergeselle }
 
 \ss
 Dudelsackpfeifenmachergeselle
 
 {\it
 Dudelsackpfeifenmachergeselle }
 
 {\bf
 Dudelsackpfeifenmachergeselle }
 
 {\bi
 Dudelsackpfeifenmachergeselle }
 \stoptext
 
 
 Now some questions remain:
 How can i set the size of the fonts?
 \setsansfont[aller][features=cond,size=14pt]
 seems not to work.
 How can i define the 35pt .8 condensed Aller?
 
 Greetings Lutz

Here is how I would do it:

\definefontfeature[cond][default][extend=.8]
\usemodule[simplefonts]
\setmainfont[Linux Libertine O]
\setsansfont[aller][scale=0.9] % downscale Aller a bit, since it has a bigger 
x-height than Libertine
\definesimplefonttypeface[titlefont][aller][features=cond] % this way, only 
titles are condensed
\setuphead[chapter][style={\switchtobodyfont[titlefont,35pt]}]
\mainlanguage[de]

\starttext
\chapter{Dudelsackpfeifenmachergesellen sind lustige Leute}

Dudelsackpfeifenmachergeselle {\ss Dudelsackpfeifenmachergeselle}

{\it Dudelsackpfeifenmachergeselle} {\ss \it Dudelsackpfeifenmachergeselle}

{\bf Dudelsackpfeifenmachergeselle } {\ss \bf Dudelsackpfeifenmachergeselle}

{\bi Dudelsackpfeifenmachergeselle } {\ss \bi Dudelsackpfeifenmachergeselle}
\stoptext

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts question

2011-11-14 Thread Lutz Haseloff
Thanks Wolfgang and Christian, works now.

Lutz

2011/11/14 Christian meta...@gmx.de:
  Hi Wolfgang,
 
  I'm looking for documentation for your handy module.
 
  Particularly i'd like to know all the options i can use for the
  commands \setmainfont and \setupsimplefonts.
 
  My goal is to use a font in my document in different sizes (say 12,
  17 and 35pt) with adequate line spacing.
 
  Do you want a whole family in this size or only a single style of a font?

 I need Linux Libertine as Serif, Aller as SansSerif and Aller in 35pt for 
 large
 titles with proper line spacing.

 My success so far:

 \definefontfeature[cond][default][extend=.8]
 \usemodule[simplefonts]
 \setmainfont[linuxlibertineo]
 \setsansfont[aller][features=cond]
 \mainlanguage[de]
 \starttext
 Dudelsackpfeifenmachergeselle

 {\it
 Dudelsackpfeifenmachergeselle }

 {\bf
 Dudelsackpfeifenmachergeselle }

 {\bi
 Dudelsackpfeifenmachergeselle }

 \ss
 Dudelsackpfeifenmachergeselle

 {\it
 Dudelsackpfeifenmachergeselle }

 {\bf
 Dudelsackpfeifenmachergeselle }

 {\bi
 Dudelsackpfeifenmachergeselle }
 \stoptext


 Now some questions remain:
 How can i set the size of the fonts?
 \setsansfont[aller][features=cond,size=14pt]
 seems not to work.
 How can i define the 35pt .8 condensed Aller?

 Greetings Lutz

 Here is how I would do it:

 \definefontfeature[cond][default][extend=.8]
 \usemodule[simplefonts]
 \setmainfont[Linux Libertine O]
 \setsansfont[aller][scale=0.9] % downscale Aller a bit, since it has a bigger 
 x-height than Libertine
 \definesimplefonttypeface[titlefont][aller][features=cond] % this way, only 
 titles are condensed
 \setuphead[chapter][style={\switchtobodyfont[titlefont,35pt]}]
 \mainlanguage[de]

 \starttext
 \chapter{Dudelsackpfeifenmachergesellen sind lustige Leute}

 Dudelsackpfeifenmachergeselle {\ss Dudelsackpfeifenmachergeselle}

 {\it Dudelsackpfeifenmachergeselle} {\ss \it Dudelsackpfeifenmachergeselle}

 {\bf Dudelsackpfeifenmachergeselle } {\ss \bf Dudelsackpfeifenmachergeselle}

 {\bi Dudelsackpfeifenmachergeselle } {\ss \bi Dudelsackpfeifenmachergeselle}
 \stoptext

 ___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simplefonts question

2011-11-13 Thread Lutz Haseloff
2011/11/11 Wolfgang Schuster schuster.wolfg...@googlemail.com:

 Am 11.11.2011 um 13:01 schrieb Lutz Haseloff:

 Hi Wolfgang,

 I'm looking for documentation for your handy module.

 Particularly i'd like to know all the options i can use for
 the commands \setmainfont and \setupsimplefonts.

 My goal is to use a font in my document in
 different sizes (say 12, 17 and 35pt) with adequate
 line spacing.

 Do you want a whole family in this size or only a single style of a font?

I need Linux Libertine as Serif, Aller as SansSerif and Aller in 35pt
for large titles with proper line spacing.

My success so far:

\definefontfeature[cond][default][extend=.8]
\usemodule[simplefonts]
\setmainfont[linuxlibertineo]
\setsansfont[aller][features=cond]
\mainlanguage[de]
\starttext
Dudelsackpfeifenmachergeselle

{\it
Dudelsackpfeifenmachergeselle }

{\bf
Dudelsackpfeifenmachergeselle }

{\bi
Dudelsackpfeifenmachergeselle }

\ss
Dudelsackpfeifenmachergeselle

{\it
Dudelsackpfeifenmachergeselle }

{\bf
Dudelsackpfeifenmachergeselle }

{\bi
Dudelsackpfeifenmachergeselle }
\stoptext


Now some questions remain:
How can i set the size of the fonts?
\setsansfont[aller][features=cond,size=14pt]
seems not to work.
How can i define the 35pt .8 condensed Aller?

Greetings Lutz
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts: Font scaling problem

2011-11-12 Thread Thomas A. Schmitz

On 11/11/2011 06:20 PM, Christian wrote:

Good evening!

 I want to scale a font loaded via the simplefonts so sans and serif have the
 same x-height.
 But as soon as I use a font size larger than 12pt, the scaling is somehow off 
or
 ignored.
 Example:

 \usemodule[simplefonts]
 \setupsimplefonts[expansion=quality, protrusion=quality]
 \setmainfont[Times New Roman]
 \setsansfont[Arial][scale=0.863]
 \starttext
 \setupbodyfont[6pt]
 06pt serif xx{\ss xx sans}\\ %fine
 \setupbodyfont[12pt]
 12pt serif xx{\ss xx sans}\\ %fine, too
 \setupbodyfont[14pt]
 14pt serif xx{\ss xx sans}\\ %here it starts to be off
 \setupbodyfont[16pt]
 16pt serif xx{\ss xx sans}\\
 \stoptext


Your example is a bit difficult to test here because it's 
windows-centric, I don't have Arial on my system. But by looking at it, 
you should have something like this in your file before setting the fonts:


\starttypescript [sans] [default] [size]
\definebodyfont [16pt] [ss] [default]
\stoptypescript
\definebodyfontenvironment[16pt]

and so on for other arbitrary sizes. ConTeXt doesn't define complete 
environments for every imaginable size (but I imagine Wolfgang may come 
up with a clever solution within his module).


HTH

Thomas
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts: Font scaling problem

2011-11-12 Thread Christian
   I want to scale a font loaded via the simplefonts so sans and serif
  have the  same x-height.
   But as soon as I use a font size larger than 12pt, the scaling is
  somehow off or  ignored.
   Example:
 
   \usemodule[simplefonts]
   \setupsimplefonts[expansion=quality, protrusion=quality]
  \setmainfont[Times New Roman]  \setsansfont[Arial][scale=0.863]
  \starttext  \setupbodyfont[6pt]  06pt serif xx{\ss xx sans}\\ %fine
  \setupbodyfont[12pt]  12pt serif xx{\ss xx sans}\\ %fine, too
  \setupbodyfont[14pt]  14pt serif xx{\ss xx sans}\\ %here it starts to
  be off  \setupbodyfont[16pt]  16pt serif xx{\ss xx sans}\\  \stoptext
 
 Your example is a bit difficult to test here because it's windows-centric, I
 don't have Arial on my system. But by looking at it, you should have
 something like this in your file before setting the fonts:
 
 \starttypescript [sans] [default] [size] \definebodyfont [16pt] [ss] [default]
 \stoptypescript \definebodyfontenvironment[16pt]
 
 and so on for other arbitrary sizes. ConTeXt doesn't define complete
 environments for every imaginable size (but I imagine Wolfgang may come
 up with a clever solution within his module).

You are right! It's all fine, when I add the code you posted and insert the 
appropriate sizes for those where it didn't work before.
Thanks for your help.

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts: Font scaling problem

2011-11-12 Thread Wolfgang Schuster

Am 12.11.2011 um 11:01 schrieb Thomas A. Schmitz:

 On 11/11/2011 06:20 PM, Christian wrote:
 Good evening!
 I want to scale a font loaded via the simplefonts so sans and serif have the
 same x-height.
 But as soon as I use a font size larger than 12pt, the scaling is somehow 
 off or
 ignored.
 Example:
 
 \usemodule[simplefonts]
 \setupsimplefonts[expansion=quality, protrusion=quality]
 \setmainfont[Times New Roman]
 \setsansfont[Arial][scale=0.863]
 \starttext
 \setupbodyfont[6pt]
 06pt serif xx{\ss xx sans}\\ %fine
 \setupbodyfont[12pt]
 12pt serif xx{\ss xx sans}\\ %fine, too
 \setupbodyfont[14pt]
 14pt serif xx{\ss xx sans}\\ %here it starts to be off
 \setupbodyfont[16pt]
 16pt serif xx{\ss xx sans}\\
 \stoptext
 
 Your example is a bit difficult to test here because it's windows-centric, I 
 don't have Arial on my system. But by looking at it, you should have 
 something like this in your file before setting the fonts:
 
 \starttypescript [sans] [default] [size]
 \definebodyfont [16pt] [ss] [default]
 \stoptypescript
 \definebodyfontenvironment[16pt]
 
 and so on for other arbitrary sizes. ConTeXt doesn't define complete 
 environments for every imaginable size (but I imagine Wolfgang may come up 
 with a clever solution within his module).

A clever solution would take a while because in this case i want to change the 
whole code in rewrite it with all the new mkiv goodies and the spec interface.

A fast solution is also possible but it won’t be more than a fix.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts: Font scaling problem

2011-11-12 Thread Christian
  Good evening!
  I want to scale a font loaded via the simplefonts so sans and serif
  have the same x-height.
  But as soon as I use a font size larger than 12pt, the scaling is
  somehow off or ignored.
  Example:
 
  \usemodule[simplefonts]
  \setupsimplefonts[expansion=quality, protrusion=quality]
  \setmainfont[Times New Roman] \setsansfont[Arial][scale=0.863]
  \starttext \setupbodyfont[6pt] 06pt serif xx{\ss xx sans}\\ %fine
  \setupbodyfont[12pt] 12pt serif xx{\ss xx sans}\\ %fine, too
  \setupbodyfont[14pt] 14pt serif xx{\ss xx sans}\\ %here it starts to
  be off \setupbodyfont[16pt] 16pt serif xx{\ss xx sans}\\ \stoptext
 
  Your example is a bit difficult to test here because it's windows-centric, I
 don't have Arial on my system. But by looking at it, you should have
 something like this in your file before setting the fonts:
 
  \starttypescript [sans] [default] [size] \definebodyfont [16pt] [ss]
  [default] \stoptypescript \definebodyfontenvironment[16pt]
 
  and so on for other arbitrary sizes. ConTeXt doesn't define complete
 environments for every imaginable size (but I imagine Wolfgang may come
 up with a clever solution within his module).
 
 A clever solution would take a while because in this case i want to change the
 whole code in rewrite it with all the new mkiv goodies and the spec interface.
 
 A fast solution is also possible but it won’t be more than a fix.

No need to rush from my part. I have what I need (bodyfont in 11.5pt with a 
properly scaled sans companion).
I get the rest of the font sizes with \tfa etc. and that keeps the proportions 
intact.

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simplefonts question

2011-11-11 Thread Wolfgang Schuster

Am 11.11.2011 um 13:01 schrieb Lutz Haseloff:

 Hi Wolfgang,
 
 I'm looking for documentation for your handy module.
 
 Particularly i'd like to know all the options i can use for
 the commands \setmainfont and \setupsimplefonts.
 
 My goal is to use a font in my document in
 different sizes (say 12, 17 and 35pt) with adequate
 line spacing.

Do you want a whole family in this size or only a single style of a font?

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts: Font scaling problem

2011-11-11 Thread Christian
 Good evening!
 I want to scale a font loaded via the simplefonts so sans and serif have the
 same x-height.
 But as soon as I use a font size larger than 12pt, the scaling is somehow off 
 or
 ignored.
 Example:
 
 \usemodule[simplefonts]
 \setupsimplefonts[expansion=quality, protrusion=quality]
 \setmainfont[Times New Roman]
 \setsansfont[Arial][scale=0.863]
 \starttext
 \setupbodyfont[6pt]
 06pt serif xx{\ss xx sans}\\ %fine
 \setupbodyfont[12pt]
 12pt serif xx{\ss xx sans}\\ %fine, too
 \setupbodyfont[14pt]
 14pt serif xx{\ss xx sans}\\ %here it starts to be off
 \setupbodyfont[16pt]
 16pt serif xx{\ss xx sans}\\
 \stoptext
 
 What is up with that?

Additional Information:
11pt - working fine
11.5pt - not working / not scaled
12pt- working fine

ConTeXt  ver: 2011.11.09 20:58 MKIV 

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] SimpleFonts: no italic and bold

2011-10-18 Thread Andreas Schneider

On 17.10.2011 16:49, Wolfgang Schuster wrote:


\usemodule[simplefonts]

\definefontfeature[fakeitalic][default][slant=.25] % for fake bold use 
“stretch=number”

\setmainfont
   [telegrotesk]
   [regularfont=* nor,
italicfont=* nor,
boldfont=* fett,
bolditalicfont=* fett,
italicfeatures=fakeitalic, % just the name of a fontfeature
bolditalicfeatures=fakeitalic]

Wolfgang


Thank you very much, that works like a charm!
I wikified it for future reference: 
http://wiki.contextgarden.net/Fonts_in_LuaTeX#Handling_special_cases


--
Best Regards,
Andreas
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] SimpleFonts: no italic and bold

2011-10-17 Thread Wolfgang Schuster

Am 17.10.2011 um 13:38 schrieb Andreas Schneider:

 Hi,
 
 I'm currently trying to use our corporate identity font face for internal 
 documents, however neither bold nor italic seem to work.
 
 I try to load it with:
 \usemodule[simplefonts]
 \setmainfont[telegrotesk]
 
 The fonts reported by mtxrun --script font --list --all contains:
 telegroteskfet telegroteskfett   c:/windows/fonts/t036016t_v21.ttf
 telegroteskfetnormal   telegroteskfett   c:/windows/fonts/t036016t_v21.ttf
 telegroteskfetttelegroteskfett   c:/windows/fonts/t036016t_v21.ttf
 telegroteskhal telegroteskhalb   c:/windows/fonts/t036014t_v21.ttf
 telegroteskhalbtelegroteskhalb   c:/windows/fonts/t036014t_v21.ttf
 telegroteskhalnormal   telegroteskhalb   c:/windows/fonts/t036014t_v21.ttf
 telegrotesknor telegrotesknorm   c:/windows/fonts/t036013t_v21.ttf
 telegrotesknormtelegrotesknorm   c:/windows/fonts/t036013t_v21.ttf
 telegrotesknornormal   telegrotesknorm   c:/windows/fonts/t036013t_v21.ttf

Important for simplefonts are the entries in the first colums, you can use

  \setmainfont[telegrotesk][regularfont=* nor,boldfont=* fett]

to enable the font.

 The --info output for normal ...
 mtx-fonts   | family  : telegrotesknor
 
 ... and bold:
 mtx-fonts   | family  : telegroteskfet
 
 What would be the preferred way to setup the font in this scenario?

As you can see from this two entries the fonts internal names are a mess,
both should be “family: telegrotesk” for a proper names font but this isn’t
the case here and the reason why automatic detection fails.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] SimpleFonts: no italic and bold

2011-10-17 Thread Andreas Schneider

On 17.10.2011 14:00, Wolfgang Schuster wrote:

Important for simplefonts are the entries in the first colums, you can use

   \setmainfont[telegrotesk][regularfont=* nor,boldfont=* fett]

to enable the font.


Ah, that is what I was looking for. Bold works now! Thank you! :-)

There's still one problem though: italic doesn't work. I guess the font 
doesn't provide that feature by itself, but can it be emulated/enabled?





  The --info output for normal ...
  mtx-fonts   | family  : telegrotesknor

  ... and bold:
  mtx-fonts   | family  : telegroteskfet

  What would be the preferred way to setup the font in this scenario?

As you can see from this two entries the fonts internal names are a mess,
both should be “family: telegrotesk” for a proper names font but this isn’t
the case here and the reason why automatic detection fails.


AFAIK the font was designed by URW who I would expect to do better than 
that ... but well, it's an old font and maybe it was done in a hurry :D


--
Best Regards,
Andreas Schneider
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] SimpleFonts: no italic and bold

2011-10-17 Thread Wolfgang Schuster

Am 17.10.2011 um 14:36 schrieb Andreas Schneider:

 On 17.10.2011 14:00, Wolfgang Schuster wrote:
 Important for simplefonts are the entries in the first colums, you can use
 
   \setmainfont[telegrotesk][regularfont=* nor,boldfont=* fett]
 
 to enable the font.
 
 Ah, that is what I was looking for. Bold works now! Thank you! :-)
 
 There's still one problem though: italic doesn't work.

Is there a file for the italic style?

 I guess the font doesn't provide that feature by itself, but can it be 
 emulated/enabled?

ConTeXt can fake the slanted and bold style but they are not the same as a real 
italic and bold font.

   The --info output for normal ...
   mtx-fonts   | family  : telegrotesknor
 
   ... and bold:
   mtx-fonts   | family  : telegroteskfet
 
   What would be the preferred way to setup the font in this scenario?
 As you can see from this two entries the fonts internal names are a mess,
 both should be “family: telegrotesk” for a proper names font but this isn’t
 the case here and the reason why automatic detection fails.
 
 AFAIK the font was designed by URW who I would expect to do better than that 
 ... but well, it's an old font and maybe it was done in a hurry :D

No, also new fonts can be a mess and there are too many information and names 
in a font which show sometimes very different values.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] SimpleFonts: no italic and bold

2011-10-17 Thread Andreas Schneider

On 17.10.2011 14:46, Wolfgang Schuster wrote:

Ah, that is what I was looking for. Bold works now! Thank you! :-)

There's still one problem though: italic doesn't work.


Is there a file for the italic style?


I guess the font doesn't provide that feature by itself, but can it be 
emulated/enabled?


ConTeXt can fake the slanted and bold style but they are not the same as a real 
italic and bold font.



AFAICS there is no italic style. Only regular, bold and semi-bold. What 
is needed to get simplefonts to fake italic (and slanted for that matter)?


--
Best Regards,
Andreas Schneider
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] SimpleFonts: no italic and bold

2011-10-17 Thread Wolfgang Schuster

Am 17.10.2011 um 15:03 schrieb Andreas Schneider:

 On 17.10.2011 14:46, Wolfgang Schuster wrote:
 Ah, that is what I was looking for. Bold works now! Thank you! :-)
 
 There's still one problem though: italic doesn't work.
 
 Is there a file for the italic style?
 
 I guess the font doesn't provide that feature by itself, but can it be 
 emulated/enabled?
 
 ConTeXt can fake the slanted and bold style but they are not the same as a 
 real italic and bold font.
 
 
 AFAICS there is no italic style. Only regular, bold and semi-bold. What is 
 needed to get simplefonts to fake italic (and slanted for that matter)?


\usemodule[simplefonts]

\definefontfeature[fakeitalic][default][slant=.25] % for fake bold use 
“stretch=number”

\setmainfont
  [telegrotesk]
  [regularfont=* nor,
   italicfont=* nor,
   boldfont=* fett,
   bolditalicfont=* fett,
   italicfeatures=fakeitalic, % just the name of a fontfeature
   bolditalicfeatures=fakeitalic]

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts, latest beta and binoms

2011-05-24 Thread Guanhao Yin
On Mon, May 23, 2011 at 12:31:35PM +0200, Wolfgang Schuster wrote:

 It’s the fault of the OpenType version of the LM Math fonts which
 are used when you use the simplefonts module

So, is it possible to use the simplefonts module with Type1 LM Math?
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simplefonts, latest beta and binoms

2011-05-24 Thread Wolfgang Schuster

Am 24.05.2011 um 16:47 schrieb Guanhao Yin:

 On Mon, May 23, 2011 at 12:31:35PM +0200, Wolfgang Schuster wrote:
 
 It’s the fault of the OpenType version of the LM Math fonts which
 are used when you use the simplefonts module
 
 So, is it possible to use the simplefonts module with Type1 LM Math?

No but you can use my calluna typescripts:

\usetypescriptfile[type-calluna]

\definetypeface[mainface][rm][serif][calluna][default]
\definetypeface[mainface][mm][math] [modern] [computer-modern]

\setupbodyfont[mainface]

\starttext

Calluna and Latin Modern Math

\startformula
\binom{1}{2}
\stopformula

\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts, latest beta and binoms

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 12:13 schrieb Cedric Mauclair:

 Hi list,
 
 I have some troubles with the simplefonts module. The following worked
 fine before (2011.02.25 22:03, need to add '\usemodule[newmat]'), but
 doesn't anymore (2011.05.18 22:26).


It’s the fault of the OpenType version of the LM Math fonts which
are used when you use the simplefonts module:

\definetypeface[mainface][rm][serif][modern]
\definetypeface[mainface][mm][math] [modern]

\setupbodyfont[mainface]

\starttext
 \startformula
   \binom{1}{2}
 \stopformula
\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts, latest beta and binoms

2011-05-23 Thread Cedric Mauclair
Thanks, but I am afraid I get the same result with your example.

-- Cédric



On Mon, May 23, 2011 at 12:31, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 23.05.2011 um 12:13 schrieb Cedric Mauclair:

 Hi list,

 I have some troubles with the simplefonts module. The following worked
 fine before (2011.02.25 22:03, need to add '\usemodule[newmat]'), but
 doesn't anymore (2011.05.18 22:26).


 It’s the fault of the OpenType version of the LM Math fonts which
 are used when you use the simplefonts module:

 \definetypeface[mainface][rm][serif][modern]
 \definetypeface[mainface][mm][math] [modern]

 \setupbodyfont[mainface]

 \starttext
  \startformula
   \binom{1}{2}
  \stopformula
 \stoptext

 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simplefonts, latest beta and binoms

2011-05-23 Thread Aditya Mahajan

On Mon, 23 May 2011, Wolfgang Schuster wrote:



Am 23.05.2011 um 12:13 schrieb Cedric Mauclair:


Hi list,

I have some troubles with the simplefonts module. The following worked
fine before (2011.02.25 22:03, need to add '\usemodule[newmat]'), but
doesn't anymore (2011.05.18 22:26).



It’s the fault of the OpenType version of the LM Math fonts which
are used when you use the simplefonts module:

\definetypeface[mainface][rm][serif][modern]
\definetypeface[mainface][mm][math] [modern]

\setupbodyfont[mainface]

\starttext
\startformula
  \binom{1}{2}
\stopformula
\stoptext


If I don't use any font setup, then the result is correct. Isn't opentype 
math setup used in both cases?


Aditya___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simplefonts, latest beta and binoms

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 15:20 schrieb Aditya Mahajan:

 If I don't use any font setup, then the result is correct. Isn't opentype 
 math setup used in both cases?

Different fonts are used. By default context use the Type1 version
of the Latin Modern fonts while my example force ConTeXt to use
the OpenType version of the fonts where the braces are wrong.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts, latest beta and binoms

2011-05-23 Thread Cedric Mauclair
I did the following (just in case):
  export DOFONTDIR=
  mtxrun --script font --reload
  context simplefonts-error.tex

The file simplefonts-error.tex is just what Wolfgang suggested:
  \definetypeface[mainface][rm][serif][modern]
  \definetypeface[mainface][mm][math] [modern]

  \setupbodyfont[mainface]

  \starttext
  \startformula
   \binom{1}{2}
  \stopformula
  \stoptext

After perusing the log file, here are the font files that are loaded:
/DATA/context-minimals/tex/texmf/fonts/opentype/public/lm/lmmath.otf
/DATA/context-minimals/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf.

I really wish to use Calluna with Latin/Computer Modern math because I
find palatino too narrow.


PS: if I should send files in private mails only, just tell me.

-- Cédric



On Mon, May 23, 2011 at 15:20, Aditya Mahajan adit...@umich.edu wrote:
 On Mon, 23 May 2011, Wolfgang Schuster wrote:


 Am 23.05.2011 um 12:13 schrieb Cedric Mauclair:

 Hi list,

 I have some troubles with the simplefonts module. The following worked
 fine before (2011.02.25 22:03, need to add '\usemodule[newmat]'), but
 doesn't anymore (2011.05.18 22:26).


 It’s the fault of the OpenType version of the LM Math fonts which
 are used when you use the simplefonts module:

 \definetypeface[mainface][rm][serif][modern]
 \definetypeface[mainface][mm][math] [modern]

 \setupbodyfont[mainface]

 \starttext
 \startformula
  \binom{1}{2}
 \stopformula
 \stoptext

 If I don't use any font setup, then the result is correct. Isn't opentype
 math setup used in both cases?

 Aditya
 ___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___



simplefonts-error.pdf
Description: Adobe PDF document


simplefonts-error.log
Description: Binary data


simplefonts-error.tex
Description: TeX 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simplefonts, latest beta and binoms

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 15:33 schrieb Cedric Mauclair:

 I really wish to use Calluna with Latin/Computer Modern math because I
 find palatino too narrow.

It is too narrow compared with Calluna but it is at least a better match
than Latin Modern but it’s possible the small braces are a bug in ConTeXt
or LuaTeX because it does only appear with OpenType math fonts:

Input:

\usemodule[simplefonts]

\setmainfont[Calluna]

\startbuffer[example]
\input ward\par
\startformula
c^2=a^2+b^2 \quad \binom{1}{2}
\stopformula
\stopbuffer

\starttext

\getbuffer[example]

\setmathfont[palatino]\getbuffer[example]

\setmathfont[euler]\getbuffer[example]

\setmathfont[times]\getbuffer[example]

\setmathfont[cambria]\getbuffer[example]

\stoptext

Output: http://d.pr/hKl1

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts, latest beta and binoms

2011-05-23 Thread Cedric Mauclair
Thanks for your help. I'll go with palatino for now.

-- Cédric



On Mon, May 23, 2011 at 15:52, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 23.05.2011 um 15:33 schrieb Cedric Mauclair:

 I really wish to use Calluna with Latin/Computer Modern math because I
 find palatino too narrow.

 It is too narrow compared with Calluna but it is at least a better match
 than Latin Modern but it’s possible the small braces are a bug in ConTeXt
 or LuaTeX because it does only appear with OpenType math fonts:

 Input:

 \usemodule[simplefonts]

 \setmainfont[Calluna]

 \startbuffer[example]
 \input ward\par
 \startformula
 c^2=a^2+b^2 \quad \binom{1}{2}
 \stopformula
 \stopbuffer

 \starttext

 \getbuffer[example]

 \setmathfont[palatino]\getbuffer[example]

 \setmathfont[euler]\getbuffer[example]

 \setmathfont[times]\getbuffer[example]

 \setmathfont[cambria]\getbuffer[example]

 \stoptext

 Output: http://d.pr/hKl1

 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simplefonts, latest beta and binoms

2011-05-23 Thread Aditya Mahajan

On Mon, 23 May 2011, Wolfgang Schuster wrote:



Am 23.05.2011 um 15:33 schrieb Cedric Mauclair:


I really wish to use Calluna with Latin/Computer Modern math because I
find palatino too narrow.


It is too narrow compared with Calluna but it is at least a better match
than Latin Modern but it’s possible the small braces are a bug in ConTeXt
or LuaTeX because it does only appear with OpenType math fonts:


The bug is with luatex:

http://tug.org/pipermail/lualatex-dev/2011-March/thread.html#1118

Aditya___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simplefonts, \setcjk....font has some side effect on verbatim typing

2011-03-19 Thread Wolfgang Schuster

Am 19.03.2011 um 13:33 schrieb 尹冠皓:

 Did I miss anything?

Fixed.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts, \setcjk....font has some side effect on verbatim typing

2011-03-19 Thread 尹冠皓
On Sat, Mar 19, 2011 at 01:46:15PM +0100, Wolfgang Schuster wrote:

 Fixed.

Thanks.
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts

2011-03-14 Thread Charles Doherty
Dear Wolfgang,

Thank you very much. It works a treat!

Best wishes,
Charlie
On 11 Mar 2011, at 18:30, Wolfgang Schuster wrote:

 
 Am 11.03.2011 um 13:28 schrieb Charles Doherty:
 
 Dear Wolfgang,
 
 I sent an e-mail about problems with my simplefonts. I got no reply since my 
 example had fonts that were probably not available to you. But the problem 
 does not relate to the Gaelic fonts that I had been using. I am sending this 
 file instead. The fonts below can be swapped about. The main font is always 
 typeset as requested but the others are not. Am I doing something really 
 silly? The readout from the console is below. I am using Context Minimals 
 MarkIV on a Mac. Help would be appreciated.
 
 Fixed.
 
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts

2011-03-11 Thread Wolfgang Schuster

Am 11.03.2011 um 13:28 schrieb Charles Doherty:

 Dear Wolfgang,
 
 I sent an e-mail about problems with my simplefonts. I got no reply since my 
 example had fonts that were probably not available to you. But the problem 
 does not relate to the Gaelic fonts that I had been using. I am sending this 
 file instead. The fonts below can be swapped about. The main font is always 
 typeset as requested but the others are not. Am I doing something really 
 silly? The readout from the console is below. I am using Context Minimals 
 MarkIV on a Mac. Help would be appreciated.

Fixed.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts module in TL2010 fails to work

2011-02-18 Thread Wolfgang Schuster

Am 18.02.2011 um 09:07 schrieb Xie, Bin:

 After a fresh web installation, the simplefonts module fails to work.

Replace in t-simplefonts.tex

\ctxloadluafile{t-simplefonts}

with

\ctxloadluafile{t-simplefonts}{}

I already uploaded a new version.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts

2010-11-13 Thread Aditya Mahajan

On Sat, 13 Nov 2010, Herbert Voss wrote:


I want to use \bf and \it with sinplefonts.
Is this the only way to get a bold style? Without it
I didn't get a bold style.


I don't know how to do this in simplefonts, but ...


\usemodule[simplefonts]
\setmainfont[NexusSerif-Regular]
\definesimplefont[bf][NexusSerif-Bold][size=12pt]


... this certainly is not the right way. For example, with this \bf\it 
will not give you bold italic.


Aditya
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts

2010-11-13 Thread Herbert Voss
Am 13.11.2010 19:32, schrieb Aditya Mahajan:
 On Sat, 13 Nov 2010, Herbert Voss wrote:
 
 I want to use \bf and \it with sinplefonts.
 Is this the only way to get a bold style? Without it
 I didn't get a bold style.
 
 I don't know how to do this in simplefonts, but ...
 
 \usemodule[simplefonts]
 \setmainfont[NexusSerif-Regular]
 \definesimplefont[bf][NexusSerif-Bold][size=12pt]
 
 ... this certainly is not the right way. For example, with this \bf\it
 will not give you bold italic.

I know, but this is not my problem, I want to know, why I
do _not_ get a bold without such a definition. I thought
that simplefonts will do the job ...

\usemodule[simplefonts]
\setmainfont[NexusSerif-Regular]
\starttext

\rm\bf is not in bold! Why?

\stoptext

Herbert
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts

2010-11-13 Thread Wolfgang Schuster

Am 13.11.2010 um 19:25 schrieb Herbert Voss:

 I want to use \bf and \it with sinplefonts.
 Is this the only way to get a bold style? Without it
 I didn't get a bold style.
 
 \usemodule[simplefonts]
 \setmainfont[NexusSerif-Regular]

\setmainfont[Nexus Serif]

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts

2010-11-13 Thread Khaled Hosny
On Sat, Nov 13, 2010 at 07:37:52PM +0100, Herbert Voss wrote:
 Am 13.11.2010 19:32, schrieb Aditya Mahajan:
  On Sat, 13 Nov 2010, Herbert Voss wrote:
  
  I want to use \bf and \it with sinplefonts.
  Is this the only way to get a bold style? Without it
  I didn't get a bold style.
  
  I don't know how to do this in simplefonts, but ...
  
  \usemodule[simplefonts]
  \setmainfont[NexusSerif-Regular]
  \definesimplefont[bf][NexusSerif-Bold][size=12pt]
  
  ... this certainly is not the right way. For example, with this \bf\it
  will not give you bold italic.
 
 I know, but this is not my problem, I want to know, why I
 do _not_ get a bold without such a definition. I thought
 that simplefonts will do the job ...
 
 \usemodule[simplefonts]
 \setmainfont[NexusSerif-Regular]

May be you should say \setmainfont[NexusSerif] without the Regular part
(which might be causing context to look for NexusSerif-Regular-Bold
which would not, normally, exist).

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts

2010-11-13 Thread Herbert Voss
Am 13.11.2010 19:44, schrieb Wolfgang Schuster:
 
 Am 13.11.2010 um 19:25 schrieb Herbert Voss:
 
 I want to use \bf and \it with sinplefonts.
 Is this the only way to get a bold style? Without it
 I didn't get a bold style.

 \usemodule[simplefonts]
 \setmainfont[NexusSerif-Regular]
 
 \setmainfont[Nexus Serif]

thanks, also to Khaled, both worked
\setmainfont[Nexus Serif]  and
\setmainfont[NexusSerif]

Herbert
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts or Typecripts

2010-08-14 Thread Gour D.
On Fri, 13 Aug 2010 17:58:55 +0200
 Hans == Hans Hagen pra...@wxs.nl wrote:

Hans it depends ... simplefonts uses some heuristics and therefore can
Hans make it easier but not all fonts fit into a systematic approach

I see.

Hans for a long time project making a few typescripts (just use those
Hans defined at the end of type-otf.mkiv as template) and using file:
Hans is more robust esp as it will nicely fail when something
Hans fundamental has changed (names or so)

Thanks for the hint.

By inspecting type-otf.mkiv from texlive  context-minimals, I see
that the latter is almost 4x bigger - probably it includes most of the
interesting free fonts available.

For now, it can be enough considering that atm we'll mostly write
markdown/reST and convert to ConTeXt via pandoc, but later we'll go
into final production and then there will be another question
relevant - whether there are some affordable commercial quality
fonts which could enhance the free collection and which cover extended
Unicode range (we need to use Sanskrit diacritics that were created via
TeX accent mechanism when we worked in old LaTeX).


Sincerely,
Gour

-- 

Gour  | Hlapicina, Croatia  | GPG: CDBF17CA

-- 


signature.asc
Description: PGP signature
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts + Linux Libertine fails to do italics and bold

2010-08-13 Thread Hans Hagen

On 13-8-2010 1:58, John Haltiwanger wrote:

The following shows a problem I am seeing when trying to use the
opentype version of Linux Libertine with the simplefonts module.

\usemodule[simplefonts]
\setmainfont[linlibertineo]

\starttext
Well, {\em this} doesn't work but {\sc this} does... and bold {\bf 
neither}
\stoptext

Using a recent minimals and a luatex ~0.60.2 .


it might be related to the names of the fonts when they're taken from 
ctan as there fontnames get texified sometimes


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts or Typecripts

2010-08-13 Thread Hans Hagen

On 13-8-2010 1:03, Gour D. wrote:

Hello!

I'd like to (finally) dive into ConTeXt (MkIV) using it for everything
and stop using LyX/LaTeX...ConText is installed via
context-minimals-git package on Archlinux (thank you Aditya).

The 'Using fonts' section on wiki says:

Handling fonts in LuaTeX can be done

 * in a simple but limited way, using the simplefonts module;
 * in the standard way, using TypeScripts

and I've tried example with Delicious font (too bad there is no
Croatian characters available) and it works.

Considering I never learnt TypeScripts mechanism (and managed to
forget most of ConteXr I knew when fiddling with it some years ago), I
wonder if 'simplefonts' is THE way to go with fonts in MkIV and/or is
there something one may miss by not using TypeScripts mechanism?


it depends ... simplefonts uses some heuristics and therefore can make 
it easier but not all fonts fit into a systematic approach


for a long time project making a few typescripts (just use those defined 
at the end of type-otf.mkiv as template) and using file: is more robust 
esp as it will nicely fail when something fundamental has changed (names 
or so)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simplefonts + Linux Libertine fails to do italics and bold

2010-08-13 Thread Wolfgang Schuster

 Am 13.08.10 13:58, schrieb John Haltiwanger:

The following shows a problem I am seeing when trying to use the
opentype version of Linux Libertine with the simplefonts module.

\usemodule[simplefonts]
\setmainfont[linlibertineo]


You have to use the full name of the font, e.g.

\setmainfont[Linux Libertine O]

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


  1   2   >