Re: [NTG-context] basic fontsizes question

2016-06-08 Thread Thomas Fehige

Am 06.06.2016 um 22:48 schrieb Wolfgang Schuster:

Hi Thomas,


[Thanks for the hint re starting a new thread, I didn't know that, sorry.]


Thomas Fehige 
6. Juni 2016 um 16:05

In the fonts book I found the \definebodyfont command, but it does not
to do what I expected. What I need (for a poster) is a set of absolute
font sizes. I tried the code below. I put some quirks in, like the
huge value for "a", to see if it works, but it doesn't. It just uses
the preset proportions relative to the preceding fontsize command (in
the example, \tfx is bigger than \tf).

\definebodyfontenvironment[palatino][24pt][
   text = 24pt,
   small = 22pt,
   x = 22pt,
   scriptscript = 16pt,
   xx = 16pt,
   big=28pt,
   a = 80pt, % 28pt
   b = 40pt,
   c = 50pt,
   d = 50pt,
   interlinespace = 3ex,
   em = italic
]

\setupbodyfont[palatino,24pt]

\starttext
   \tf tf\\
   \tfa tfa\\
   \tfb tfb\\
   \tfx tfx\\
   \tfx tfx
\stoptext



When you have only a small amount of text the use of
\definebodyfontenvironment is overkill because you can use the
\definedfont command to set a certain font size.

\starttext

\start \definedfont[Serif at 20pt]
\input ward
\stop

\startfont[SansBoldItalic at 18pt]
\input ward
\stopfont

\stoptext

Wolfgang


Nevertheless, I prefer to keep all the font and fontsize definitions and 
tweaks together in the preamble. This poster is not the only work I'm 
planning to do in ConTeXt, and I need to learn to swim while already in 
the water ;) .


Meanwhile I found the command \definebodyfontswitch and defined switches 
like \normalsize, \scriptsize, \large, \Large etc.


But this doesn't explain why \definebodyfontenvironment did not do 
anything in my MNWE. The fonts book is not very clear on its intended use.


BTW, I have no idea how all the strange line breaks crept into my code 
sample again. It seems tabs in a html mail are converted into line 
breaks somewhere along the line. I'll stick to plain text in the future.


Cheers -- 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] basic fontsizes question

2016-06-08 Thread Wolfgang Schuster

Thomas Fehige 
8. Juni 2016 um 10:35
Nevertheless, I prefer to keep all the font and fontsize definitions 
and tweaks together in the preamble. This poster is not the only work 
I'm planning to do in ConTeXt, and I need to learn to swim while 
already in the water ;) .
For short texts where you want a certain style and size (e.g. a title 
page or a poster with few words) \definedfont is the recommended method, 
for larger amounts of the text (e.g. the abstract of a book) you can use 
\switchtobodyfont to change the size.
Meanwhile I found the command \definebodyfontswitch and defined 
switches like \normalsize, \scriptsize, \large, \Large etc.
The \definebodyfontswitch creates only a command which uses 
\switchtobodyfont with a fixed number of arguments.
But this doesn't explain why \definebodyfontenvironment did not do 
anything in my MNWE. The fonts book is not very clear on its intended 
use.

You put spaces before and after = which aren’t allowed there.

\definebodyfontenvironment
  [24pt]
  [ small=22pt,
  big=28pt,
x=22pt,
   xx=16pt,
a=30pt,
b=40pt,
c=50pt,
d=60pt,
   interlinespace=30pt,
   em=italic]

\setupbodyfont[palatino,24pt]

\starttext

\startlines
 \tf   tf
{\tfa  tfa}
{\tfb  tfb}
{\tfc  tfc}
{\tfd  tfd}
{\tfx  tfx}
{\tfxx tfxx}
\stoplines

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

[NTG-context] environment flushright

2016-06-08 Thread Thomas A. Schmitz
Hi all,

for a translation of poetry, I would like to have an environment which will 
typeset a split line in a way that the second part will be flushright - is this 
possible? So instead of

bla bla bla bla
bla

I get 

bla bla bla bla
bla

if (and only if) there’s a line break.

Thanks, and all best

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] basic fontsizes question

2016-06-08 Thread Thomas Fehige
Thank you Wolfgang, that solves the mystery. (As the poster is for a 
philosophical association, "few words" is not applicable here.)


Am 08.06.2016 um 11:11 schrieb Wolfgang Schuster:

Thomas Fehige 
8. Juni 2016 um 10:35
Nevertheless, I prefer to keep all the font and fontsize definitions
and tweaks together in the preamble. This poster is not the only work
I'm planning to do in ConTeXt, and I need to learn to swim while
already in the water ;) .

For short texts where you want a certain style and size (e.g. a title
page or a poster with few words) \definedfont is the recommended method,
for larger amounts of the text (e.g. the abstract of a book) you can use
\switchtobodyfont to change the size.

Meanwhile I found the command \definebodyfontswitch and defined
switches like \normalsize, \scriptsize, \large, \Large etc.

The \definebodyfontswitch creates only a command which uses
\switchtobodyfont with a fixed number of arguments.

But this doesn't explain why \definebodyfontenvironment did not do
anything in my MNWE. The fonts book is not very clear on its intended
use.

You put spaces before and after = which aren’t allowed there.

\definebodyfontenvironment
   [24pt]
   [ small=22pt,
   big=28pt,
 x=22pt,
xx=16pt,
 a=30pt,
 b=40pt,
 c=50pt,
 d=60pt,
interlinespace=30pt,
em=italic]

\setupbodyfont[palatino,24pt]

\starttext

\startlines
  \tf   tf
{\tfa  tfa}
{\tfb  tfb}
{\tfc  tfc}
{\tfd  tfd}
{\tfx  tfx}
{\tfxx tfxx}
\stoplines

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

[NTG-context] beta

2016-06-08 Thread Hans Hagen

Hi,

I uploaded a new beta. This version has (experimental) support for color 
fonts. (not to be confused with 'coloring text in a font').


\definefontfeature[svg][default][svg=yes]
\definefontfeature[colored][default][colr=yes]

% \definefont[Emoj][file:emojionecolor-svginot.ttf*default,svg]
% \definefont[Emoj][file:seguiemj.ttf*default,colored]

\definesymbol[bug1][\getglyphdirect{file:emojionecolor-svginot.ttf*svg}{\char"1F41B}]
\definesymbol[bug2][\getglyphdirect{file:seguiemj.ttf*colored} 
{\char"1F41B}]


\startTEXpage [width=10em,align=middle,offset=1em]
There are several kind of bugs, like \symbol [bug1] and \symbol [bug2],
also in \CONTEXT !
\stopTEXpage

The colr features uses (if present) the overlay method (microsoft fonts 
have that) which is quite clean and efficient, while the svg one uses 
(when present) svg information from the font. Caching the later one will 
take some initial time (due to conversion, i might figure out something 
better) and needs inkscape installed.


Attached an example. I didn't look too extensively for a font, but on 
the agenda is turning the cowfont in a color one (maybe for the ctx 
meeting). At some point I might add overloading of colors (for the 
overlay variant).


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-


colors-002.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] beta

2016-06-08 Thread Hans Åberg

> On 8 Jun 2016, at 16:41, Hans Hagen  wrote:

> I uploaded a new beta. 

The OS X installation page does not say how to update when installing system 
wide into /Applications/.

http://wiki.contextgarden.net/Mac_Installation


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

2016-06-08 Thread Hans Hagen

On 6/8/2016 6:27 PM, Hans Åberg wrote:



On 8 Jun 2016, at 16:41, Hans Hagen  wrote:



I uploaded a new beta.


The OS X installation page does not say how to update when installing system 
wide into /Applications/.

http://wiki.contextgarden.net/Mac_Installation


just run first_setup again

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] beta

2016-06-08 Thread Hans Åberg

> On 8 Jun 2016, at 22:33, Hans Hagen  wrote:

>>> I uploaded a new beta.
>> 
>> The OS X installation page does not say how to update when installing system 
>> wide into /Applications/.
>> 
>> http://wiki.contextgarden.net/Mac_Installation
> 
> just run first_setup again

OK.


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

2016-06-08 Thread Jan Tosovsky
On 2016-06-08 Hans Hagen wrote:
>
> This version has (experimental) support for color fonts. 
> ...
> svg one uses svg information from the font

Btw, SVG fonts were removed from SVG 2.0 and considered as a deprecated feature:

http://caniuse.com/#feat=svg-fonts
https://lists.w3.org/Archives/Public/www-svg/2013Jan/0030.html

Jan



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

2016-06-08 Thread Hans Hagen

On 6/8/2016 11:02 PM, Jan Tosovsky wrote:

On 2016-06-08 Hans Hagen wrote:


This version has (experimental) support for color fonts.
...
svg one uses svg information from the font


Btw, SVG fonts were removed from SVG 2.0 and considered as a deprecated feature:

http://caniuse.com/#feat=svg-fonts
https://lists.w3.org/Archives/Public/www-svg/2013Jan/0030.html


we're talking of opentype fonts that can have svg shapes (e.g. for 
colored emoj)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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
___