ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: context manuals -- absence of \definefontfamily
       [not found] <mailman.1.1641294002.10048.ntg-context@ntg.nl>
@ 2022-01-04 12:53 ` Jeong Dal via ntg-context
  0 siblings, 0 replies; 6+ messages in thread
From: Jeong Dal via ntg-context @ 2022-01-04 12:53 UTC (permalink / raw)
  To: ntg-context; +Cc: Jeong Dal


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

Dear Aditya and Youssef Cherem,

To: Aditya,
> 
> There is the talk that Wolfgang gave in this year's context meeting:
> 
> https://meeting.contextgarden.net/2021/talks/2021-09-23/definefontfamily.pdf
> 
Thank you for letting me know the talk which gives me more understanding about \definefontfamily.

To: Youssef Cherem,

Recently, Wolfgang helped me to define a font family as following, and I hope that it gives you some idea to use \definefontfamily.

\definefallbackfamily [nanum] [rm] [Tex Gyre Pagella]
  [range={basiclatin,latinsupplement,latinextendeda,latinextendedb}, 
   force=yes]
\definefallbackfamily [nanum] [rm] [Noto Serif CJK KR]
  [range={cjkunifiedideographs},force=yes]
\definefontfamily [nanum] [rm] [Nanum Myeongjo OTF]
  [   it={style:regular,features:{*,slanted}},
      bi={style:bold,features:{*,slanted}},force=yes]

Explanation:
1. I use Korean font whose family name is “Nanum Myeongjo OTF” as main font. Since it doesn’t have italic style and bold italic style, I add [it=… , bi=…] to simulate the styles.

2. Since I want to use English character in "TeX Gyre Pagella”. I add it in the first \definefallbackfamily with an option [range={…},force=yes] which restrict the use of font to Latin characters.

3. We use chinese characters also in the Korean sentences. But "Nanum Myeongjo OTF” doesn’t have Chinese characters. So I add another font “Noto Serif CJK KR” which contains Chinese character with the option [range={cjkunified…},force=yes] in the second \definefallbackfamily.

There are two font families more,  sans and mono which is similar as rm.
It is really nice to use \definefontfamily which saves a lot of work to define fonts. 

Thanks Wolfgang.
If there are something should changed in the above definition, please tell me what to do.

Best regards,

Dalyoung



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

[-- Attachment #2: Type: text/plain, Size: 493 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] 6+ messages in thread

* Re: context manuals -- absence of \definefontfamily
  2022-01-04 22:07   ` Arthur Rosendahl via ntg-context
@ 2022-01-05  8:01     ` Hans Hagen via ntg-context
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen via ntg-context @ 2022-01-05  8:01 UTC (permalink / raw)
  To: Mailing list for ConTeXt users; +Cc: Hans Hagen

On 1/4/2022 11:07 PM, Arthur Rosendahl wrote:
> On Mon, Jan 03, 2022 at 11:16:46PM +0100, Hans Hagen via ntg-context wrote:
>> Because Wolfgang has to write a chapter (or a MyWay document) and we're all
>> mostly volunteers so ...
> 
>    Youssef has got a point, though: \definefontfamily should perhaps be
> given a tiny bit better treatment on the wiki.  I agree with him that
> https://wiki.contextgarden.net/Use_the_fonts_you_want seems like the
> best place to mention it, and even think that all of the last section
> could be rewritten using \definefontfamily instead of a typescript
> definition (which can be moved elsewhere, it obviously doesn’t need to
> be deleted from the wiki entirely).  But I wouldn’t like to disturb the
> good work that Garulfo did when he overhauled the wiki, hence if you’re
> around, Garulfo, perhaps you could comment on that?
a note:

basically we have 3 ways to define a font (collection):

- selectfont: works find when fonts have 'correct' names and come in 
consistent 'sets' (which is not always the case)

- typescripts: for long term stable style usage this is best because one 
uses filenames and can even rename font files then so that updates don't 
clash (typescripts can be in styles or in separate files)

- single font: for specific usage, like special fonts or titling; 
definition by name or file or spec but probably most oiften by file 
(just to be sure); although one can use abstraction by name this methoid 
is not used for collections

mechanisms like fallbacks work for all but may need additional definitions

design siszes can complicate matters but there are no many

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: context manuals -- absence of \definefontfamily
  2022-01-03 22:16 ` Hans Hagen via ntg-context
  2022-01-03 23:21   ` Aditya Mahajan via ntg-context
@ 2022-01-04 22:07   ` Arthur Rosendahl via ntg-context
  2022-01-05  8:01     ` Hans Hagen via ntg-context
  1 sibling, 1 reply; 6+ messages in thread
From: Arthur Rosendahl via ntg-context @ 2022-01-04 22:07 UTC (permalink / raw)
  To: Mailing list for ConTeXt users; +Cc: Arthur Rosendahl

On Mon, Jan 03, 2022 at 11:16:46PM +0100, Hans Hagen via ntg-context wrote:
> Because Wolfgang has to write a chapter (or a MyWay document) and we're all
> mostly volunteers so ...

  Youssef has got a point, though: \definefontfamily should perhaps be
given a tiny bit better treatment on the wiki.  I agree with him that
https://wiki.contextgarden.net/Use_the_fonts_you_want seems like the
best place to mention it, and even think that all of the last section
could be rewritten using \definefontfamily instead of a typescript
definition (which can be moved elsewhere, it obviously doesn’t need to
be deleted from the wiki entirely).  But I wouldn’t like to disturb the
good work that Garulfo did when he overhauled the wiki, hence if you’re
around, Garulfo, perhaps you could comment on that?

	Best,

		Arthur
___________________________________________________________________________________
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] 6+ messages in thread

* Re: context manuals -- absence of \definefontfamily
  2022-01-03 22:16 ` Hans Hagen via ntg-context
@ 2022-01-03 23:21   ` Aditya Mahajan via ntg-context
  2022-01-04 22:07   ` Arthur Rosendahl via ntg-context
  1 sibling, 0 replies; 6+ messages in thread
From: Aditya Mahajan via ntg-context @ 2022-01-03 23:21 UTC (permalink / raw)
  To: Hans Hagen via ntg-context; +Cc: Aditya Mahajan

[-- Attachment #1: Type: text/plain, Size: 1577 bytes --]

On Mon, 3 Jan 2022, Hans Hagen via ntg-context wrote:

> On 1/3/2022 9:41 PM, Youssef Cherem via ntg-context wrote:
> > Dear all,
> > 
> > I've come back to using Context and I noticed the nice manuals around -- 
> > but one thing I miss is \definefontfamily (and \definefallbackfamily).
> > 
> > There is info here:
> > https://wiki.contextgarden.net/Use_fonts_distributed_with_ConTeXt 
> > <https://wiki.contextgarden.net/Use_fonts_distributed_with_ConTeXt>
> > 
> > and then checking out the specific page: 
> > https://wiki.contextgarden.net/Command/definefontfamily 
> > <https://wiki.contextgarden.net/Command/definefontfamily>
> > 
> > It still baffles me that definefontfamily, though much simpler than 
> > typescripts (which is intimidating), is not mentioned in the beginner's 
> > manuals (unless I missed something) and neither is it given more 
> > prominence in the Wiki, although I often see it mentioned in the forums. 
> > Being used to fontspec's simplicity, I'd never use typescripts. It would 
> > help a lot, for example, to include a sample of "definefontfamily" in 
> > "Use any font you like".
> > 
> > Is there a reason why definefontfamily doesn't appear at all in the 
> > manuals (as far as I could see), which are rather comprehensive otherwise?
> 
> Because Wolfgang has to write a chapter (or a MyWay document) and we're 
> all mostly volunteers so ...

There is the talk that Wolfgang gave in this year's context meeting:

https://meeting.contextgarden.net/2021/talks/2021-09-23/definefontfamily.pdf

Aditya

[-- Attachment #2: Type: text/plain, Size: 493 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] 6+ messages in thread

* Re: context manuals -- absence of \definefontfamily
  2022-01-03 20:41 Youssef Cherem via ntg-context
@ 2022-01-03 22:16 ` Hans Hagen via ntg-context
  2022-01-03 23:21   ` Aditya Mahajan via ntg-context
  2022-01-04 22:07   ` Arthur Rosendahl via ntg-context
  0 siblings, 2 replies; 6+ messages in thread
From: Hans Hagen via ntg-context @ 2022-01-03 22:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

On 1/3/2022 9:41 PM, Youssef Cherem via ntg-context wrote:
> Dear all,
> 
> I've come back to using Context and I noticed the nice manuals around -- 
> but one thing I miss is \definefontfamily (and \definefallbackfamily).
> 
> There is info here:
> https://wiki.contextgarden.net/Use_fonts_distributed_with_ConTeXt 
> <https://wiki.contextgarden.net/Use_fonts_distributed_with_ConTeXt>
> 
> and then checking out the specific page: 
> https://wiki.contextgarden.net/Command/definefontfamily 
> <https://wiki.contextgarden.net/Command/definefontfamily>
> 
> It still baffles me that definefontfamily, though much simpler than 
> typescripts (which is intimidating), is not mentioned in the beginner's 
> manuals (unless I missed something) and neither is it given more 
> prominence in the Wiki, although I often see it mentioned in the forums. 
> Being used to fontspec's simplicity, I'd never use typescripts. It would 
> help a lot, for example, to include a sample of "definefontfamily" in 
> "Use any font you like".
> 
> Is there a reason why definefontfamily doesn't appear at all in the 
> manuals (as far as I could see), which are rather comprehensive otherwise?

Because Wolfgang has to write a chapter (or a MyWay document) and we're 
all mostly volunteers so ...

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* context manuals -- absence of \definefontfamily
@ 2022-01-03 20:41 Youssef Cherem via ntg-context
  2022-01-03 22:16 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: Youssef Cherem via ntg-context @ 2022-01-03 20:41 UTC (permalink / raw)
  To: ntg-context; +Cc: Youssef Cherem


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

Dear all,

I've come back to using Context and I noticed the nice manuals around --
but one thing I miss is \definefontfamily (and \definefallbackfamily).

There is info here:
https://wiki.contextgarden.net/Use_fonts_distributed_with_ConTeXt

and then checking out the specific page:
https://wiki.contextgarden.net/Command/definefontfamily

It still baffles me that definefontfamily, though much simpler than
typescripts (which is intimidating), is not mentioned in the beginner's
manuals (unless I missed something) and neither is it given more prominence
in the Wiki, although I often see it mentioned in the forums. Being used to
fontspec's simplicity, I'd never use typescripts. It would help a lot, for
example, to include a sample of "definefontfamily" in "Use any font you
like".

Is there a reason why definefontfamily doesn't appear at all in the manuals
(as far as I could see), which are rather comprehensive otherwise?

All the best and thanks again for everything.

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

[-- Attachment #2: Type: text/plain, Size: 493 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] 6+ messages in thread

end of thread, other threads:[~2022-01-05  8:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.1.1641294002.10048.ntg-context@ntg.nl>
2022-01-04 12:53 ` context manuals -- absence of \definefontfamily Jeong Dal via ntg-context
2022-01-03 20:41 Youssef Cherem via ntg-context
2022-01-03 22:16 ` Hans Hagen via ntg-context
2022-01-03 23:21   ` Aditya Mahajan via ntg-context
2022-01-04 22:07   ` Arthur Rosendahl via ntg-context
2022-01-05  8:01     ` Hans Hagen via ntg-context

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