ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Steve White <stevan.white@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: 'kern': TrueType table and GPOS lookup feature
Date: Fri, 30 Nov 2012 15:25:12 +0100	[thread overview]
Message-ID: <CAEmWKkQ84dFmJYayYb-JrEzFE+4XNoMk48-0Xjuf-JtS5O9kaA@mail.gmail.com> (raw)
In-Reply-To: <CAG5iGsBYtn8NZhTqcxMHE5TBc6KnvHH0cXJ_jvY4WXMrPCoNrQ@mail.gmail.com>


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

Hi Luigi,

As I said, this example does not produce a PDF file for me.  I will attach
the output.

Undefined control sequence ...
...and it points to \showfontkerns

In previous attempts to load a font file directly, I used a command
structures something like
     [file:FreeSerif.otf*default],
but these never worked for me either,
and you seem to be using some other method.
How should one load the file for this example?

You didn't answer the question: to investigate this behaviour, must I
install a second, newer version of context, or can I use the disro
version?  What is the reason for installing the latest version of ConTeXt?
Is this \showfontkerns only in versions newer than 2012.05.30 11:26 MKIV ?

This \showfontkerns may be interesting to me, generally.  (So I have a
further incentive to get this going!)



On Fri, Nov 30, 2012 at 1:24 PM, luigi scarso <luigi.scarso@gmail.com>wrote:

> On Fri, Nov 30, 2012 at 12:40 PM, Steve White <stevan.white@gmail.com>
> wrote:
> > Hi Luigi,
> >
> > I am lacking still
> >
> >     * a working input (*.tex) file
> %% test.tex
> \usemodule[simplefonts][size=25pt]
> \definefontfeature[latins][default][script=latn]
> \setmainfont[FreeSerif]
> \starttext
> \showfontkerns
> dadedidodufafefifofufrflftlalelilolutatetitotu\par
> \addfs{latins}
> dadedidodufafefifofufrflftlalelilolutatetitotu\par
> \stoptext
>
>
>
>
>
> >     * the command line to build it with ConTeXt
> $> context test.tex
>
> >
> > There are already two ConTeXt installations on different machines here.
> > The most recent is 2012.05.30 MKIV, on Ubuntu.
> > Are you saying I have to install the latest version of ConTeXt to see the
> > effects being discussed?
> Quick how-to
> $>##  install latest minimals under  /opt/luatex/standalone-new
> $>## and run the test
> $>mkdir -p /opt/luatex/standalone-new
> $>cd /opt/luatex/standalone-new
> $>wget http://minimals.contextgarden.net/setup/first-setup.sh
> $>bash /first-setup.sh --modules=simplefonts
> $>## wait a little
> $>cd tex
> $>source setuptex
> $>## ok we shoudl have context mkiv now
> $>context --version
> $>cd texmf-project
> $>mkdir fonts &&  cd fonts
> $>wget http://ftp.gnu.org/gnu/freefont/freefont-src-20120503.zip
> $>unzip freefont-src-20120503.zip
> $>cd freefont-20120503
> $>mv *.ttf  ../
> $>cd ..
> $>mtxrun --script font --reload
> $>## let's see if they are installed
> $>mtxrun --script fonts --list --all|grep free
> $>cd ..
> $>## put the test.tex here
> $>context test.tex
>
>
>
> >
> > I see vertical lines in your attached PDF... is this a new complaint?
> vertical bars are the result of \showkerns
> > I thought the problem was that sometimes kerning isn't activated.
> could be.
>
> --
> luigi
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

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

[-- Attachment #2: context-kern1.log --]
[-- Type: application/octet-stream, Size: 15200 bytes --]

(context-kern1.tex

ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2012.11.30  int: english/english

system          > cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system          > beware: some patches loaded from cont-new.mkiv
)
system          > context-kern1.top loaded
system          > options > begin of optionfile
system          > options >
system          > options > % runtime options files (command line driven)
system          > options > \unprotect
system          > options > % feedback and basic job control
system          > options > % handy for special styles
system          > options > \startluacode
system          > options > document = document or { }
system          > options > document.arguments={
system          > options > }
system          > options > document.files={
system          > options >  "context-kern1.tex",
system          > options > }
system          > options > \stopluacode
system          > options > % process info
system          > options > \setupsystem[inputfile=context-kern1.tex]
system          > options > \setupsystem[\c!n=1,\c!m=1]
system          > options > % modes
system          > options > % options (not that important)
system          > options > \startsetups *runtime:options
system          > options > \stopsetups
system          > options > % styles and modules
system          > options > \startsetups *runtime:modules
system          > options > \stopsetups
system          > options > % done
system          > options > \protect \endinput
system          > options >
system          > options > end of optionfile
(context-kern1.top)
fonts           > latin modern fonts are not preloaded
languages       > language en is active
resolvers       > modules > loaded: 'simplefonts'
(/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex
loading         > ConTeXt User Module / Simplefonts
<+ /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua>)
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
simplefonts     > font 'freeserif' not found
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
simplefonts     > font 'freeserif' not found
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
simplefonts     > font 'freeserif' not found
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
simplefonts     > font 'freeserif' not found
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
simplefonts     > font 'freeserif' not found
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
simplefonts     > font 'freeserif' not found
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
simplefonts     > font 'freeserif' not found
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
simplefonts     > font 'freeserif' not found
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
simplefonts     > font 'freeserif' not found
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
simplefonts     > font 'freeserif' not found
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
simplefonts     > font 'freeserif' not found
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
fonts           > names > font database has matching configuration and file hashes
simplefonts     > font 'freeserif' not found
(/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fonts           > defining > forced type otf of lmmath not found
fonts           > defining > font with asked name 'lmmath' is not found using lookup 'file'
fonts           > defining > unknown font lmmath, loading aborted
fonts           > defining > unable to define lmmath.otf as \*simplefonts:112.5ptmmmr33*
fonts           > defining > forced type otf of lmmath not found
fonts           > defining > font with asked name 'lmmath' is not found using lookup 'file'
fonts           > defining > unknown font lmmath, loading aborted
fonts           > defining > unable to define lmmath.otf as \*simplefonts:117.5ptmmmr22*
fonts           > defining > forced type otf of lmmath not found
fonts           > defining > font with asked name 'lmmath' is not found using lookup 'file'
fonts           > defining > unknown font lmmath, loading aborted
fonts           > defining > unable to define lmmath.otf as \*simplefonts:125ptmmmr11*
system          > begin file context-kern1.tex at line 5
! Undefined control sequence.

system          > tex > error on line 6 in file context-kern1.tex: Undefined control sequence ...

 1     
 2     \usemodule[simplefonts][size=25pt]
 3     \definefontfeature[latins][default][script=latn]
 4     \setmainfont[FreeSerif]
 5     \starttext
 6 >>  \showfontkerns
 7     dadedidodufafefifofufrflftlalelilolutatetitotu\par
 8     \addfs{latins}
 9     dadedidodufafefifofufrflftlalelilolutatetitotu\par
10     \stoptext
11     

l.6 \showfontkerns
                  
? x
mkiv lua stats  > used config file          - selfautodir:/share/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path           - readable: '/home/swhite/.texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b' (order 2)
mkiv lua stats  > used cache path           - writable: '/home/swhite/.texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b'
mkiv lua stats  > input load time           - 0.086 seconds
mkiv lua stats  > stored bytecode data      - 285 modules, 60 tables, 345 chunks
mkiv lua stats  > loaded tex modules        - 1 requested, 1 found (*-simplefonts), 0 missing
mkiv lua stats  > cleaned up reserved nodes - 30 nodes, 9 lists of 423
mkiv lua stats  > node memory usage         - 18 glue_spec, 1 dir
mkiv lua stats  > node list callback tasks  - 6 unique task lists, 1 instances (re)created, 4080 calls
mkiv lua stats  > used backend              - pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded patterns           - en::2
mkiv lua stats  > callbacks                 - 4102 direct, 3765 indirect, 7867 total
mkiv lua stats  > result saved in file      - context-kern1.pdf
mkiv lua stats  > loaded fonts              - 1 files: lmmonoprop10-regular.otf
mkiv lua stats  > fonts load time           - 0.121 seconds 
mkiv lua stats  > luatex banner             - this is luatex, version beta-0.70.1-2011120612
mkiv lua stats  > control sequences         - 31332 of 165536
mkiv lua stats  > current memory usage      - 19 MB (ctx: 19 MB)
mkiv lua stats  > runtime                   - 6.398 seconds


[-- Attachment #3: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2012-11-30 14:25 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-30  7:06 Pablo Rodríguez
2012-11-30  9:13 ` Hans Hagen
2012-11-30  9:58   ` Steve White
2012-11-30 10:18     ` luigi scarso
2012-11-30 11:40       ` Steve White
2012-11-30 12:24         ` luigi scarso
2012-11-30 14:25           ` Steve White [this message]
2012-11-30 15:30             ` luigi scarso
2012-11-30 15:38               ` Hans Hagen
2012-11-30 18:12                 ` Steve White
2012-11-30 18:22                   ` Hans Hagen
2012-11-30 19:37                   ` luigi scarso
2012-11-30 21:25                     ` Steve White
2012-11-30 22:02                       ` Hans Hagen
2012-11-30 23:57                         ` Pablo Rodríguez
2012-12-01 16:22                       ` Steve White
2012-12-01 19:22                         ` luigi scarso
2012-12-01 19:38                           ` Aditya Mahajan
2012-12-01 19:46                             ` luigi scarso
2012-12-01 19:58                               ` Aditya Mahajan
2012-12-01 21:09                                 ` luigi scarso
2012-12-02  9:58                                   ` Steve White
2012-12-02 13:12                                     ` Khaled Hosny
2012-12-02 14:32                                       ` Steve White
2012-12-02 14:49                                         ` Khaled Hosny
2012-12-02 10:10                           ` Steve White
2012-12-02 10:24                             ` luigi scarso
2012-12-02 10:43                               ` Wolfgang Schuster
2012-12-02 11:08                               ` Steve White
2012-12-02 11:48                                 ` luigi scarso
2012-11-30 15:43         ` Hans Hagen
2012-11-30 14:13     ` Khaled Hosny
2012-11-30 15:41       ` Hans Hagen
2012-11-30 16:05     ` Hans Hagen
2012-11-30 16:39       ` Bill Meahan
2012-11-30 18:08         ` Steve White
2012-11-30 19:07           ` Bill Meahan
2012-11-30 21:24             ` Steve White
2012-11-30 18:34       ` Steve White

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=CAEmWKkQ84dFmJYayYb-JrEzFE+4XNoMk48-0Xjuf-JtS5O9kaA@mail.gmail.com \
    --to=stevan.white@gmail.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).