ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pavneet Arora <pavneet_arora@waroc.com>
To: "Jörg Weger" <joerg73.muc@googlemail.com>
Cc: ConTeXt Mailing list <ntg-context@ntg.nl>
Subject: Re: Selecting fonts using the built-in simplefonts module
Date: Sun, 29 Mar 2015 15:38:12 -0400	[thread overview]
Message-ID: <20150329193811.GZ30678@darjiling> (raw)
In-Reply-To: <551820C8.80607@googlemail.com>

Dear Joerg,

Thanks for your response.  I am just going through the full thread, but 
in response to your question, I am using Ubuntu with Unity.  I was using 
the GUI Font Viewer to inspect the font, but otfinfo is more to my 
liking.

Having said that, here is its output with the '-a' option (-a, --family                 
Report font’s family name.):

$ otfinfo -a Junction-light.otf
Junction Light

So, it would seem that Junction Light is a valid 'expanded name' in the 
Junction Master series, although, of course, not the true family name.

I am still digesting further the responses by Pablo and Wolfgang.

Warm regards.


On 29Mar15, Jörg Weger wrote:
> Your mistake was that you did not use the correct font family name
> in the third pair of square brackets. It is simply “Junction”.
> 
> I have yet to find out if ConTeXt itself can show a font’s true family name.
> 
> On Linux I am either  using a command line tool called otfinfo (that
> also shows me what opentype features are there) or I open the font
> with fontforge (if I want to find out more about the details of
> opentype features) or I open it with mate-font-viewer (fork of
> gnome-font-viewer). In the latter the family name is shown in the
> first line on the right.
> 
> Name: Junction
> 
> What desktop environment are you using?
> 
> 
> As far as I have understood by default the built in font-selection
> module uses the “family members” named “Regular” and “Bold” of a
> selected font family, e.g. in
> 
> \definefontfamily[mainface][ss][Junction]
> 
> \ss gives Junction Regular and \ss \bf gives Junction Bold
> 
> If you want to use different font weights you have to define them
> yourself in a fourth pair of square brackets.
> 
> The League of Movable Type’s Junction font family offers three
> weights: Light, Regular and Bold.
> 
> Assuming that you want to use Junction Light as your “regular sans
> serif” font and Junction Regular as your “bold sans serif” you
> define for sans serif:
> 
> \definefontfamily[mainface][ss][Junction]
> 	[regularfont=Junction Light, boldfont=Junction Regular]
> 
> Now \ss should give Junction Light and \ss \bf should give Junction Regular.
> 
> You can define italics as well, as the following definition for
> Google’s Roboto shows where I am using light and black instead of
> regular and bold. (Junction does not offer italic or slanted, that
> is why I use Roboto as an example of a family with many weights and
> styles. https://developer.android.com/design/style/typography.html
> should have the reworked 2014 version for download.)
> 
> \definefontfamily[mainface][ss][Roboto]
> 	[regularfont=Roboto Light, italicfont=Roboto Light Italic,
> 	 boldfont=Roboto Black, bolditalicfont=Roboto Black Italic]
> 
> (You could even mix weights and styles from different font families.)
> 
> 
> Hope that helps.
> 
> 
> Greetings Jörg

-- 
----
Pavneet Arora           m: 647.406.6843
Waroc Informatik        t: 416.937.9276
___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2015-03-29 19:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-29 12:40 Pavneet Arora
2015-03-29 15:56 ` Jörg Weger
2015-03-29 16:52   ` Pablo Rodriguez
2015-03-29 19:38   ` Pavneet Arora [this message]
2015-03-29 16:37 ` Pablo Rodriguez
2015-03-29 17:47 ` Wolfgang Schuster
2015-03-29 18:33   ` Jörg Weger
2015-03-29 19:31     ` Wolfgang Schuster
2015-03-29 20:29       ` Jörg Weger
2015-03-29 20:57         ` Wolfgang Schuster
2015-03-29 20:44   ` Pavneet Arora
2015-03-29 21:16     ` Wolfgang Schuster
     [not found] <mailman.527.1427657514.2410.ntg-context@ntg.nl>
2015-03-29 19:45 ` Pavneet Arora

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150329193811.GZ30678@darjiling \
    --to=pavneet_arora@waroc.com \
    --cc=joerg73.muc@googlemail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).