* strange fontswitching error
@ 2009-02-19 13:27 Alan Stone
2009-02-19 21:36 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Alan Stone @ 2009-02-19 13:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1297 bytes --]
Hi,
BF = body font
HF = head font
A = arial
T = times new roman
V = verdana
OT = 12 = 12pt
OF = 14 = 14pt
See comments in fontswitch.tex
In attachment...
- fontswitch.tex: minimal example
- tps_arial.tex, tps_timesnewroman.tex, tps_verdana.tex: typescripts
- fontswitch.log for BFT14 + HFV14 -> font error ( same with BFA14 + HFV14 )
- fontswitch.pdf for BFT14 + HFV14 : chapter head is blank ( same with BFA14
+ HFV14 )
After testing different font(switching) combinations...
- BFA14 or BFT14 + HFVx with x not 14pt compile and print the generated pdf
fine
- BFV14 + HFV14 compiles and prints the generated pdf fine
- BFA12, BFT12, BFV12 + HFV14 or HFV12 compile and print the generated pdf
fine
Qué passa ?
Alan
-----------------------------------------------------------------------------------------------
SURPRISE, SURPRISE...
-----------------------------------------------------------------------------------------------
Banker Logic: The More You Screw Up, The More You Get Paid...
CEOs Caught Scheming On Tape
http://www.youtube.com/watch?v=zwbE-y2Rx6I or
http://www.liveleak.com/view?i=f95_1234826309
-----------------------------------------------------------------------------------------------
[-- Attachment #1.2: Type: text/html, Size: 1944 bytes --]
[-- Attachment #2: fontswitch.tex --]
[-- Type: application/x-tex, Size: 1754 bytes --]
[-- Attachment #3: tps_arial.tex --]
[-- Type: application/x-tex, Size: 722 bytes --]
[-- Attachment #4: tps_timesnewroman.tex --]
[-- Type: application/x-tex, Size: 876 bytes --]
[-- Attachment #5: tps_verdana.tex --]
[-- Type: application/x-tex, Size: 757 bytes --]
[-- Attachment #6: fontswitch.log --]
[-- Type: application/octet-stream, Size: 5603 bytes --]
This is luaTeX, Version snapshot-0.31.3-2008122922
(fontswitch.tex
ConTeXt ver: 2009.01.18 14:39 MKIV fmt: 2009.2.2 int: english/english
system : cont-new loaded
(C:/context/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv) (C:/context/tex/texmf-context/tex/context/base/cont-mtx.tex))
system : cont-fil loaded
(C:/context/tex/texmf-context/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system : cont-sys.rme loaded
(C:/context/tex/texmf-context/tex/context/user/cont-sys.rme (C:/context/tex/texmf-context/tex/context/base/type-tmf.tex) (C:/context/tex/texmf-context/tex/context/base/type-siz.tex) (C:/context/tex/texmf-context/tex/context/base/type-otf.tex))
bodyfont : 12pt rm is loaded
specials : pdftex loaded
language : language en is active
system : fontswitch.top loaded
(fontswitch.top) (../tps_arial.tex) (../tps_timesnewroman.tex) (../tps_verdana.tex) (fontswitch.tuo) (fontswitch.tuo)
systems : begin file fontswitch at line 35
chapter : 1 First Chapter
(C:/context/tex/texmf-context/tex/context/sample/knuth.tex)
fonts : resetting map file list
{C:/context/tex/texmf-context/fonts/map/pdftex/context/original-empty.map}
fonts : using map file: original-base
{C:/context/tex/texmf-context/fonts/map/pdftex/context/original-base.map}
fonts : using map file: lm-math
{C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}
fonts : using map file: lm-rm
{C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts : using map file: original-ams-base
{C:/context/tex/texmf-context/fonts/map/pdftex/context/original-ams-base.map}
fonts : using map file: original-ams-euler
{C:/context/tex/texmf-context/fonts/map/pdftex/context/original-ams-euler.map}
fonts : using map file: original-public-lm
{C:/context/tex/texmf-context/fonts/map/pdftex/context/original-public-lm.map} [1.1
Missing character: There is no 1 (49) in font nullfont!
Missing character: There is no F (70) in font nullfont!
Missing character: There is no i (105) in font nullfont!
Missing character: There is no r (114) in font nullfont!
Missing character: There is no s (115) in font nullfont!
Missing character: There is no t (116) in font nullfont!
Missing character: There is no C (67) in font nullfont!
Missing character: There is no h (104) in font nullfont!
Missing character: There is no a (97) in font nullfont!
Missing character: There is no p (112) in font nullfont!
Missing character: There is no t (116) in font nullfont!
Missing character: There is no e (101) in font nullfont!
Missing character: There is no r (114) in font nullfont!
]
systems : end file fontswitch at line 41
system : cont-err loaded
(C:/context/tex/texmf-context/tex/context/base/cont-err.tex
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
) )<C:/WINDOWS/fonts/times.ttf>
mkiv lua stats : result saved in file - fontswitch.pdf
mkiv lua stats : used config path - C:/context/tex/texmf/web2c/texmf.cnf
mkiv lua stats : used cache path - C:/context/tex/texmf-cache
mkiv lua stats : luatex banner - this is luatex, version snapshot-0.31.3-2008122922
mkiv lua stats : modules/dumps/instances - 101/26/1
mkiv lua stats : input load time - 0.047 seconds
mkiv lua stats : startup time - 1.531 seconds (including runtime option file processing)
mkiv lua stats : jobdata time - 0.000 seconds saving, 0.000 seconds loading
mkiv lua stats : fonts load time - 1.781 seconds
mkiv lua stats : xml load time - 0.000 seconds, lpath calls: 0, cached calls: 0
mkiv lua stats : lxml load time - 0.000 seconds preparation, backreferences: 0
mkiv lua stats : mps conversion time - 0.000 seconds
mkiv lua stats : node processing time - 0.000 seconds including kernel
mkiv lua stats : kernel processing time - 0.000 seconds
mkiv lua stats : attribute processing time - 0.000 seconds
mkiv lua stats : language load time - 0.047 seconds, n=2
mkiv lua stats : graphics processing time - 0.000 seconds including tex, n=0
mkiv lua stats : metapost processing time - 0.000 seconds, loading: 0.000 seconds, execution: 0.000 seconds, n: 0
mkiv lua stats : current memory usage - 59 MB (ctx: 61 MB)
mkiv lua stats : cleaned up reserved nodes - 19 nodes, 8 lists of 100
mkiv lua stats : node memory usage - 20 glue_spec, 2 dir
mkiv lua stats : loaded patterns - us:us:pat:exc:2
mkiv lua stats : loaded fonts - c:/windows/fonts/times:ttf c:/windows/fonts/timesbd:ttf c:/windows/fonts/timesbi:ttf c:/windows/fonts/timesi:ttf lmex10:tfm lmmi10:tfm lmmi12:tfm lmmi7:tfm lmmi9:tfm lmroman10-bolditalic:otf lmroman10-italic:otf lmroman12-bold:otf lmroman12-italic:otf lmroman12-regular:otf lmroman7-bold:otf lmroman7-regular:otf lmroman9-bold:otf lmroman9-italic:otf lmroman9-regular:otf lmromancaps10-regular:otf lmromanslant10-bold:otf lmromanslant10-regular:otf lmromanslant12-regular:otf lmromanslant9-regular:otf lmsy10:tfm lmsy7:tfm lmsy9:tfm msam10:tfm msam7:tfm msbm10:tfm msbm7:tfm rm-lmr10:tfm rm-lmr12:tfm rm-lmr7:tfm rm-lmr9:tfm
mkiv lua stats : control sequences - 34769 of 165536
mkiv lua stats : callbacks - direct: 504, indirect: 5103, total: 5607
mkiv lua stats : runtime - 2.594 seconds, 1 processed pages, 1 shipped pages, 0.386 pages/second
[-- Attachment #7: fontswitch.pdf --]
[-- Type: application/pdf, Size: 32117 bytes --]
[-- Attachment #8: Type: text/plain, Size: 487 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: strange fontswitching error
2009-02-19 13:27 strange fontswitching error Alan Stone
@ 2009-02-19 21:36 ` Hans Hagen
2009-02-20 9:24 ` Alan Stone
2009-02-20 14:42 ` Alan Stone
0 siblings, 2 replies; 5+ messages in thread
From: Hans Hagen @ 2009-02-19 21:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
Alan Stone wrote:
> Hi,
>
> BF = body font
> HF = head font
>
> A = arial
> T = times new roman
> V = verdana
>
> OT = 12 = 12pt
> OF = 14 = 14pt
>
> See comments in fontswitch.tex
>
> In attachment...
>
> - fontswitch.tex: minimal example
> - tps_arial.tex, tps_timesnewroman.tex, tps_verdana.tex: typescripts
> - fontswitch.log for BFT14 + HFV14 -> font error ( same with BFA14 + HFV14 )
> - fontswitch.pdf for BFT14 + HFV14 : chapter head is blank ( same with BFA14
> + HFV14 )
>
> After testing different font(switching) combinations...
>
> - BFA14 or BFT14 + HFVx with x not 14pt compile and print the generated pdf
> fine
> - BFV14 + HFV14 compiles and prints the generated pdf fine
> - BFA12, BFT12, BFV12 + HFV14 or HFV12 compile and print the generated pdf
> fine
>
> Qué passa ?
you use undefined typefaces; in mkii we default to an empty fontclass
which in turn will trigger default fallbacks (i.e. the main bodyfont has
no fontclass) while in mkiv we default to the 'modern' fontclass; i'm
still not sure if it will be kept this way but if so, i'll make a
fallback again (this time to a default fontclass)
% \usetypescriptfile[tps_arial] \usetypescript[arial]
\usetypescriptfile[tps_timesnewroman] \usetypescript[timesnewroman]
\usetypescriptfile[tps_verdana] \usetypescript[verdana]
\def\myFontSizeOT{12pt}
\def\myFontSizeOF{19pt}
% \setupbodyfont[arial, \myFontSizeOT]
% \setupbodyfont[timesnewroman,\myFontSizeOT]
\setupbodyfont[verdana, \myFontSizeOT]
% \setupbodyfont[arial, \myFontSizeOF]
% \setupbodyfont[timesnewroman,\myFontSizeOF]
% \setupbodyfont[verdana, \myFontSizeOF]
% \setuphead[chapter][style={\switchtobodyfont[arial,\myFontSizeOT]}]
%
\setuphead[chapter][style={\switchtobodyfont[timesnewroman,\myFontSizeOT]}]
% \setuphead[chapter][style={\switchtobodyfont[verdana,\myFontSizeOT]}]
\setuphead[chapter][style={\switchtobodyfont[arial,\myFontSizeOF]}]
%
\setuphead[chapter][style={\switchtobodyfont[timesnewroman,\myFontSizeOF]}]
% \setuphead[chapter][style={\switchtobodyfont[verdana,\myFontSizeOF]}]
\starttext
\chapter{First Chapter}
\input knuth
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| 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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: strange fontswitching error
2009-02-19 21:36 ` Hans Hagen
@ 2009-02-20 9:24 ` Alan Stone
2009-02-22 18:46 ` Hans Hagen
2009-02-20 14:42 ` Alan Stone
1 sibling, 1 reply; 5+ messages in thread
From: Alan Stone @ 2009-02-20 9:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 4198 bytes --]
Thanks Hans.
This works, except...
\usetypescriptfile[tps_timesnewroman]
\usetypescript[timesnewroman]
\usetypescriptfile[tps_verdana]
\usetypescript[verdana]
\def\myBodyFontSize{14pt}
\def\myHeadFontSize{14pt}
\setupbodyfont[verdana,\myBodyFontSize]
\setuphead[chapter][style={\switchtobodyfont[timesnewroman,\myHeadFontSize]}]
\starttext
\chapter{First Chapter}
\input knuth
\stoptext
(1) with for example
- bodyfont = verdana, head font = timesnewroman (or the reverse)
bodyfont size = 12pt, headfont size 12 pt => pdf is fine
bodyfont size = 13pt, headfont size 13 pt => chapter head is blank
bodyfont size = 14pt, headfont size 14 pt => chapter head is blank
(2) what to use instead of \definetypeface[myFont][...] to be able to write
\setupbodyfont[myFont,...] and/or \switchtobodyfont[myFont,...] ?
Alan
On Thu, Feb 19, 2009 at 10:36 PM, Hans Hagen <pragma@wxs.nl> wrote:
> Alan Stone wrote:
>
>> Hi,
>>
>> BF = body font
>> HF = head font
>>
>> A = arial
>> T = times new roman
>> V = verdana
>>
>> OT = 12 = 12pt
>> OF = 14 = 14pt
>>
>> See comments in fontswitch.tex
>>
>> In attachment...
>>
>> - fontswitch.tex: minimal example
>> - tps_arial.tex, tps_timesnewroman.tex, tps_verdana.tex: typescripts
>> - fontswitch.log for BFT14 + HFV14 -> font error ( same with BFA14 + HFV14
>> )
>> - fontswitch.pdf for BFT14 + HFV14 : chapter head is blank ( same with
>> BFA14
>> + HFV14 )
>>
>> After testing different font(switching) combinations...
>>
>> - BFA14 or BFT14 + HFVx with x not 14pt compile and print the generated
>> pdf
>> fine
>> - BFV14 + HFV14 compiles and prints the generated pdf fine
>> - BFA12, BFT12, BFV12 + HFV14 or HFV12 compile and print the generated pdf
>> fine
>>
>> Qué passa ?
>>
>
> you use undefined typefaces; in mkii we default to an empty fontclass which
> in turn will trigger default fallbacks (i.e. the main bodyfont has no
> fontclass) while in mkiv we default to the 'modern' fontclass; i'm still not
> sure if it will be kept this way but if so, i'll make a fallback again (this
> time to a default fontclass)
>
> % \usetypescriptfile[tps_arial] \usetypescript[arial]
> \usetypescriptfile[tps_timesnewroman] \usetypescript[timesnewroman]
> \usetypescriptfile[tps_verdana] \usetypescript[verdana]
>
> \def\myFontSizeOT{12pt}
> \def\myFontSizeOF{19pt}
>
> % \setupbodyfont[arial, \myFontSizeOT]
> % \setupbodyfont[timesnewroman,\myFontSizeOT]
> \setupbodyfont[verdana, \myFontSizeOT]
>
> % \setupbodyfont[arial, \myFontSizeOF]
> % \setupbodyfont[timesnewroman,\myFontSizeOF]
> % \setupbodyfont[verdana, \myFontSizeOF]
>
> % \setuphead[chapter][style={\switchtobodyfont[arial,\myFontSizeOT]}]
> %
> \setuphead[chapter][style={\switchtobodyfont[timesnewroman,\myFontSizeOT]}]
> % \setuphead[chapter][style={\switchtobodyfont[verdana,\myFontSizeOT]}]
>
> \setuphead[chapter][style={\switchtobodyfont[arial,\myFontSizeOF]}]
> %
> \setuphead[chapter][style={\switchtobodyfont[timesnewroman,\myFontSizeOF]}]
> % \setuphead[chapter][style={\switchtobodyfont[verdana,\myFontSizeOF]}]
>
> \starttext
>
> \chapter{First Chapter}
>
> \input knuth
>
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
> | 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://tex.aanhet.net
> archive : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
--
Alan
[-- Attachment #1.2: Type: text/html, Size: 5911 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: strange fontswitching error
2009-02-19 21:36 ` Hans Hagen
2009-02-20 9:24 ` Alan Stone
@ 2009-02-20 14:42 ` Alan Stone
1 sibling, 0 replies; 5+ messages in thread
From: Alan Stone @ 2009-02-20 14:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2767 bytes --]
On Thu, Feb 19, 2009 at 10:36 PM, Hans Hagen <pragma@wxs.nl> wrote:
> Alan Stone wrote:
>
>> Hi,
>>
>> BF = body font
>> HF = head font
>>
>> A = arial
>> T = times new roman
>> V = verdana
>>
>> OT = 12 = 12pt
>> OF = 14 = 14pt
>>
>> See comments in fontswitch.tex
>>
>> In attachment...
>>
>> - fontswitch.tex: minimal example
>> - tps_arial.tex, tps_timesnewroman.tex, tps_verdana.tex: typescripts
>> - fontswitch.log for BFT14 + HFV14 -> font error ( same with BFA14 + HFV14
>> )
>> - fontswitch.pdf for BFT14 + HFV14 : chapter head is blank ( same with
>> BFA14
>> + HFV14 )
>>
>> After testing different font(switching) combinations...
>>
>> - BFA14 or BFT14 + HFVx with x not 14pt compile and print the generated
>> pdf
>> fine
>> - BFV14 + HFV14 compiles and prints the generated pdf fine
>> - BFA12, BFT12, BFV12 + HFV14 or HFV12 compile and print the generated pdf
>> fine
>>
>> Qué passa ?
>>
>
> you use undefined typefaces; in mkii we default to an empty fontclass which
> in turn will trigger default fallbacks (i.e. the main bodyfont has no
> fontclass) while in mkiv we default to the 'modern' fontclass; i'm still not
> sure if it will be kept this way but if so, i'll make a fallback again (this
> time to a default fontclass)
At first I didn't understand a thing about your answer, however after
digging a bit further and finding out that when replacing 14pt with 14.4 pt
( re: \showbodyfontenvironment table ) it works again. Guess I now
understand what "fallbacks"means. :O)
For future reference...
http://en.wikipedia.org/wiki/Typeface
http://en.wikipedia.org/wiki/Fallback_font
Alan
> % \usetypescriptfile[tps_arial] \usetypescript[arial]
> \usetypescriptfile[tps_timesnewroman] \usetypescript[timesnewroman]
> \usetypescriptfile[tps_verdana] \usetypescript[verdana]
>
> \def\myFontSizeOT{12pt}
> \def\myFontSizeOF{19pt}
>
> % \setupbodyfont[arial, \myFontSizeOT]
> % \setupbodyfont[timesnewroman,\myFontSizeOT]
> \setupbodyfont[verdana, \myFontSizeOT]
>
> % \setupbodyfont[arial, \myFontSizeOF]
> % \setupbodyfont[timesnewroman,\myFontSizeOF]
> % \setupbodyfont[verdana, \myFontSizeOF]
>
> % \setuphead[chapter][style={\switchtobodyfont[arial,\myFontSizeOT]}]
> %
> \setuphead[chapter][style={\switchtobodyfont[timesnewroman,\myFontSizeOT]}]
> % \setuphead[chapter][style={\switchtobodyfont[verdana,\myFontSizeOT]}]
>
> \setuphead[chapter][style={\switchtobodyfont[arial,\myFontSizeOF]}]
> %
> \setuphead[chapter][style={\switchtobodyfont[timesnewroman,\myFontSizeOF]}]
> % \setuphead[chapter][style={\switchtobodyfont[verdana,\myFontSizeOF]}]
>
> \starttext
>
> \chapter{First Chapter}
>
> \input knuth
>
[-- Attachment #1.2: Type: text/html, Size: 3627 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: strange fontswitching error
2009-02-20 9:24 ` Alan Stone
@ 2009-02-22 18:46 ` Hans Hagen
0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2009-02-22 18:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
Alan Stone wrote:
> This works, except...
the next beta does some more checking (valid fontclass and some fallbacks)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| 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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-02-22 18:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-19 13:27 strange fontswitching error Alan Stone
2009-02-19 21:36 ` Hans Hagen
2009-02-20 9:24 ` Alan Stone
2009-02-22 18:46 ` Hans Hagen
2009-02-20 14:42 ` Alan Stone
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).