ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Defining a title font.
Date: Wed, 3 Oct 2012 10:45:39 +0200	[thread overview]
Message-ID: <5BD58520-7B2D-4214-9817-D7FBC8F4DCE3@gmail.com> (raw)
In-Reply-To: <20121002173838.30205e71@sda3.wexfordpress.net>


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


Am 02.10.2012 um 23:38 schrieb john Culleton <John@wexfordpress.com>:

> Trying to use an OTF font just for the title page.
> Ran mkluatexfontdb
> Used the name as defined in ../otfl-names.lua
> Here is my actual code:
> --------------------------
> 
> \usemodule[simplefonts]
> \definefont [titlefont][MyriadPro-Bold at 50bp]       
> \startstandardmakeup
> \titlefont 
> \centerline{Scribus}
> \centerline {for}
> \centerline{Book Covers}
> \centerline{Free Publishing Software Series}
> \rm
> \stopstandardmakeup
> --------------------------
> And here are the pertinent error messages:
> ------------------------------
> (title.tex
> resolvers       > modules > loaded: 'simplefonts'
> (/home/safe/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.mkiv
> loading         > ConTeXt User Module / Simplefonts
> <+ /home/safe/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua>)
> fonts           > defining > font with asked name 'MyriadPro-Bold' is not found using lookup 'file'
> fonts           > defining > unknown font MyriadPro-Bold, loading aborted
> fonts           > defining > unable to define MyriadPro-Bold as [titlefont--0]
> )
> -----------------------------------------------------------------------
> Clearly I don't know what I am doing. Can someone help?

The command “ mkluatexfontdb” creates a font database for LaTeX (or more concrete
the luaotfload package) but context has always used it’s own font database.

To update the font database for context you have to call “mtxrun --script fonts --reload”
but the script searches for system fonts only on windows and mac machines. When you’re
working on a linux system you have to set the “OSFONTDIR” variable first.

Read also this: http://wiki.contextgarden.net/Fonts_in_LuaTeX#Building_the_font_database

Wolfgang


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

[-- Attachment #2: 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-10-03  8:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-02 21:38 john Culleton
2012-10-03  8:45 ` Wolfgang Schuster [this message]
2012-10-04 16:03   ` john Culleton
2012-10-04 16:19     ` Wolfgang Schuster

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=5BD58520-7B2D-4214-9817-D7FBC8F4DCE3@gmail.com \
    --to=wolfgang.schuster@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).