ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Comical error..
@ 2017-02-11 19:51 John Culleton
  2017-02-11 20:08 ` Henning Hraban Ramm
  2017-02-12 15:56 ` Comical error..solved John Culleton
  0 siblings, 2 replies; 7+ messages in thread
From: John Culleton @ 2017-02-11 19:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I am just starting on a new project and haven't fussed with body
fonts yet. I specified specific fonts for the half and title pages. For
the copyright page thus far I just used the default whatever that is. 
On that page the
lower case "e" came out as a lower case "c" in every instance. 

I do have the following in my macros.tex subfile which I pass on from
job to job:
-------------------------  
\setupbodyfontenvironment[default][em=italic]
\usemodule[simplefonts][size=10pt]
\definefontfeature
  [default]
  [default]
  [protrusion=quality,expansion=quality]
\setupalign[hz,hanging]
-------------------------------------
maybe there is somethng funky there.
John Culleton
Wexfordpress
Book design and indexing.


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

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

* Re: Comical error..
  2017-02-11 19:51 Comical error John Culleton
@ 2017-02-11 20:08 ` Henning Hraban Ramm
  2017-02-12  2:40   ` John Culleton
  2017-02-12 15:56 ` Comical error..solved John Culleton
  1 sibling, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2017-02-11 20:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2017-02-11 um 20:51 schrieb John Culleton <john@wexfordpress.com>:

> I am just starting on a new project and haven't fussed with body
> fonts yet. I specified specific fonts for the half and title pages. For
> the copyright page thus far I just used the default whatever that is. 

Default is Latin Modern.

> On that page the
> lower case "e" came out as a lower case "c" in every instance. 
> 
> I do have the following in my macros.tex subfile which I pass on from
> job to job:
> -------------------------  
> \setupbodyfontenvironment[default][em=italic]
> \usemodule[simplefonts][size=10pt]

The simplefonts module is obsolete.
You didn’t \setupbodyfont.

> \definefontfeature
>  [default]
>  [default]
>  [protrusion=quality,expansion=quality]
> \setupalign[hz,hanging]
> -------------------------------------
> maybe there is somethng funky there.
> John Culleton
> Wexfordpress
> Book design and indexing.


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

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

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

* Re: Comical error..
  2017-02-11 20:08 ` Henning Hraban Ramm
@ 2017-02-12  2:40   ` John Culleton
  2017-02-12 12:28     ` josephcanedo
  2017-02-12 17:44     ` Pablo Rodriguez
  0 siblings, 2 replies; 7+ messages in thread
From: John Culleton @ 2017-02-12  2:40 UTC (permalink / raw)
  To: ntg-context

On Sat, 11 Feb 2017 21:08:46 +0100
Here is another example from the Wiki
-------------------------------------
 \definefontfamily
        [mainface]
        [rm]
        [TeX Gyre Pagella]
        [it={TeX Gyre Cursor-Italic},
         bf={TeX Gyre Adventor-Bold},
         bi={TeX Gyre Termes-BoldItalic}]

    \setupbodyfontenvironment
        [default]
        [em=italic]

    \setupbodyfont[mainface]
    \starttext
    \startTEXpage[offset=1em]
    Roman font {\em italic}

    \bf Bold font \em bold italic
    \stopTEXpage
    \stoptext
---------------------------------------
and another
--------------------------------------
setupbodyfont[dejavu]

\setupbodyfontenvironment
 [default]
 [smallsized=1.25,
  mediumsized=1.5,
  largesized=2.0]

\definefontsize[smallsized]
\definefontsize[mediumsized]
\definefontsize[largesized]

\starttext

\setuphead[chapter]   [style=\bflargesized]
\setuphead[section]   [style=\bfmediumsized]
\setuphead[subsection][style=\bfsmallsized]

\chapter   {Whatever $x-1$}
\section   {Whatever $x-1$}
\subsection{Whatever $x-1$}

\input ward
\blank
Whatever $x-1$
\blank

{\itmediumsized This is italic medium sized. $\cos(x) = {\rm
Re}(\exp({\rm i}x))$}

\blank

{\rmmediumsized This is roman medium sized. \crlf
$\cos(x) = {\rm Re}(\exp({\rm i}x))$}

\stoptext

--------------------------------------
Some questions:
1. Where is the basic size of the font family defined in points?
2. In the second example which of the many Dejavu fonts is assumed to
be the starting point? Is it a ttf or a otf version?
3. Can any font family on the system be used or is there a specific
context list?

All answers appreciated of course :<)

 John Culleton
Wexfordpress
Book design and indexing.

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

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

* Re: Comical error..
  2017-02-12  2:40   ` John Culleton
@ 2017-02-12 12:28     ` josephcanedo
  2017-02-12 17:44     ` Pablo Rodriguez
  1 sibling, 0 replies; 7+ messages in thread
From: josephcanedo @ 2017-02-12 12:28 UTC (permalink / raw)
  To: John Culleton, ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 2933 bytes --]

Re question 2. You can have the list of loaded fonts files from the log file produced by context command, nearly the end :

For example from my run :

mkiv lua stats  > loaded fonts: 4 files: dejavusansmono.ttf, ebgaramond12-regular.otf, keteryg-medium.ttf, sblgreek.ttf

From this you can deduce most probably the font file format. 

Please use : 

mtxrun  --script fonts 

To get more information on fonts database context uses.

Hope this helps a bit.
Best

Joseph

De : John Culleton
Envoyé le :dimanche 12 février 2017 03:41
À : ntg-context@ntg.nl
Objet :Re: [NTG-context] Comical error..

On Sat, 11 Feb 2017 21:08:46 +0100
Here is another example from the Wiki
-------------------------------------
 \definefontfamily
        [mainface]
        [rm]
        [TeX Gyre Pagella]
        [it={TeX Gyre Cursor-Italic},
         bf={TeX Gyre Adventor-Bold},
         bi={TeX Gyre Termes-BoldItalic}]

    \setupbodyfontenvironment
        [default]
        [em=italic]

    \setupbodyfont[mainface]
    \starttext
    \startTEXpage[offset=1em]
    Roman font {\em italic}

    \bf Bold font \em bold italic
    \stopTEXpage
    \stoptext
---------------------------------------
and another
--------------------------------------
setupbodyfont[dejavu]

\setupbodyfontenvironment
 [default]
 [smallsized=1.25,
  mediumsized=1.5,
  largesized=2.0]

\definefontsize[smallsized]
\definefontsize[mediumsized]
\definefontsize[largesized]

\starttext

\setuphead[chapter]   [style=\bflargesized]
\setuphead[section]   [style=\bfmediumsized]
\setuphead[subsection][style=\bfsmallsized]

\chapter   {Whatever $x-1$}
\section   {Whatever $x-1$}
\subsection{Whatever $x-1$}

\input ward
\blank
Whatever $x-1$
\blank

{\itmediumsized This is italic medium sized. $\cos(x) = {\rm
Re}(\exp({\rm i}x))$}

\blank

{\rmmediumsized This is roman medium sized. \crlf
$\cos(x) = {\rm Re}(\exp({\rm i}x))$}

\stoptext

--------------------------------------
Some questions:
1. Where is the basic size of the font family defined in points?
2. In the second example which of the many Dejavu fonts is assumed to
be the starting point? Is it a ttf or a otf version?
3. Can any font family on the system be used or is there a specific
context list?

All answers appreciated of course :<)

 John Culleton
Wexfordpress
Book design and indexing.

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


[-- Attachment #1.2: Type: text/html, Size: 7247 bytes --]

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

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

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

* Re: Comical error..solved
  2017-02-11 19:51 Comical error John Culleton
  2017-02-11 20:08 ` Henning Hraban Ramm
@ 2017-02-12 15:56 ` John Culleton
  1 sibling, 0 replies; 7+ messages in thread
From: John Culleton @ 2017-02-12 15:56 UTC (permalink / raw)
  To: ntg-context

On Sat, 11 Feb 2017 14:51:33 -0500
John Culleton <john@wexfordpress.com> wrote:

> I am just starting on a new project and haven't fussed with body
> fonts yet. I specified specific fonts for the half and title pages.
> For the copyright page thus far I just used the default whatever that
> is. On that page the
> lower case "e" came out as a lower case "c" in every instance. 
> 
> 
The substitution occurred when I viewed the pdf in xpdf but not in
okular. I will report this to the proper(?) authorities.
-- 
John Culleton
Wexfordpress
Book design and indexing.


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

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

* Re: Comical error..
  2017-02-12  2:40   ` John Culleton
  2017-02-12 12:28     ` josephcanedo
@ 2017-02-12 17:44     ` Pablo Rodriguez
  2017-02-12 20:02       ` John Culleton
  1 sibling, 1 reply; 7+ messages in thread
From: Pablo Rodriguez @ 2017-02-12 17:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 02/12/2017 03:40 AM, John Culleton wrote:
> [...]
> Some questions:
> 1. Where is the basic size of the font family defined in points?

Hi John,

the default font size is 12pt.

> 2. In the second example which of the many Dejavu fonts is assumed to
> be the starting point? Is it a ttf or a otf version?

As Joseph Canedo explained, the DejaVu font seem to be a TrueType font.

This may be (and I think it is) a font in OpenType format with TrueType
outlines (instead of PostScript outlines).

> 3. Can any font family on the system be used or is there a specific
> context list?

Any system font (TTF, OTF and PS at least) can be used with ConTeXt.

All that ConTeXt (or LuaTeX) requires is the way to find it. The safest
way is the file name.

Let us know whether you have further questions.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Comical error..
  2017-02-12 17:44     ` Pablo Rodriguez
@ 2017-02-12 20:02       ` John Culleton
  0 siblings, 0 replies; 7+ messages in thread
From: John Culleton @ 2017-02-12 20:02 UTC (permalink / raw)
  To: ntg-context

On Sun, 12 Feb 2017 18:44:30 +0100
Pablo Rodriguez <oinos@gmx.es> wrote:

> On 02/12/2017 03:40 AM, John Culleton wrote:
> > [...]
> > Some questions:
> > 1. Where is the basic size of the font family defined in points?  
> 
> Hi John,
> 
> the default font size is 12pt.
> 
> > 2. In the second example which of the many Dejavu fonts is assumed
> > to be the starting point? Is it a ttf or a otf version?  
> 
> As Joseph Canedo explained, the DejaVu font seem to be a TrueType
> font.
> 
> This may be (and I think it is) a font in OpenType format with
> TrueType outlines (instead of PostScript outlines).
> 
> > 3. Can any font family on the system be used or is there a specific
> > context list?  
> 
> Any system font (TTF, OTF and PS at least) can be used with ConTeXt.
> 
> All that ConTeXt (or LuaTeX) requires is the way to find it. The
> safest way is the file name.
> 
> Let us know whether you have further questions.
> 
> I hope it helps,
> 
> 
> Pablo

Thanks to you and Joseph! I am getting back into Context after a long
absence and things are gradually coming back to me. My first new
document is proceeding :<)

-- 
John Culleton
Wexfordpress
Book design and indexing.


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

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

end of thread, other threads:[~2017-02-12 20:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-11 19:51 Comical error John Culleton
2017-02-11 20:08 ` Henning Hraban Ramm
2017-02-12  2:40   ` John Culleton
2017-02-12 12:28     ` josephcanedo
2017-02-12 17:44     ` Pablo Rodriguez
2017-02-12 20:02       ` John Culleton
2017-02-12 15:56 ` Comical error..solved John Culleton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).