(or at least using) the other font feature (c2sc) does not
work, and since (to my knowledge) there is no style like \sc for that in tex,
we have to define it using the font feature.
If , like Bernhard wrote, \addff is broken, that would affect also
features like 'sups', 'dlig' and so
Hello,
could it be that in the latest beta (ConTeXt ver: 2011.03.30 11:21 MKIV)
the font feature 'small capitals' is broken?
Can someone who has Minion Pro test this, please?
I'm using
\usemodule[simplefonts]
\definefontfeature[smcp][default][smcp=yes]
\def\sc{\addff{smcp}}
\definefontfeature
On 22-3-2011 1:23, C. wrote:
Hello,
the automatic replacement of -- to endash does not work with a certain font.
\endash does work and produces the expected symbol.
I also have these lines in my code:
\definefontfeature[tlig][default][tlig=yes]
\addff{tlig}
I checked that the endash
-2011 1:23, C. wrote:
Hello,
the automatic replacement of -- to endash does not work with a certain
font.
\endash does work and produces the expected symbol.
I also have these lines in my code:
\definefontfeature[tlig][default][tlig=yes]
\addff{tlig}
I checked that the endash
have these lines in my code:
\definefontfeature[tlig][default][tlig=yes]
\addff{tlig}
I checked that the endash is at position U+2013 in the font.
What else could be wrong here?
the fact that you don't tell what font it concerns and that no minimal
example
is added
Hans
Hello,
the automatic replacement of -- to endash does not work with a certain font.
\endash does work and produces the expected symbol.
I also have these lines in my code:
\definefontfeature[tlig][default][tlig=yes]
\addff{tlig}
I checked that the endash is at position U+2013 in the font.
What
\def\sc{\addff{smcp} I get still no smallcaps.
You need \definefonfeature[smcp][smcp=yes] to enable a feature with \addff or
\addfs.
Wolfgang
___
If your question is of interest to others as well, please add an entry
[Seravek] [mm] [math][palatino][default]
\stoptypescript
%\def\sc{\addff{smcp}}
\starttext
{\sc Smallcaps: \fontname\font. Amsterdam, 1234567890}
\stoptext
This gives no smallcaps wether the \def is active or not.
Strange thing is, that is works with lm and pagella (tested).
Willi
On 7 Jan
{\addff{smcp} I get still no smallcaps.
Willi
___
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
.}
\usetypescriptfile[type-paratype]
\usetypescript[paratype]
\usetypescript[paratype-caption]
\usetypescript[paratype-narrow]
\setupbodyfont[paratype,12pt]
\mainlanguage[ru] \setbreakpoints[compound]
\setuptolerance[horizontal,tolerant]
\definefontfeature[cpsp][default][cpsp=yes,mode=node]
\def\heading{\addff
-- sadly no text figures except in the SC variant‽
0123456789\hfill
{\addff{superscrp} 0123456789}\hfill
%% Diacritics
ěščřžýáíéóůúňďť\hfill
ąśæåżźćóęł\par
Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm
Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz
Ąą Ęę Łł Ćć Śś Żż Źź Ńń Ěě Šš Čč
On Thu, Sep 30, 2010 at 22:14, Hans Hagen wrote:
\starttext
\definefontfeature[default][default][compose=yes]
\setupbodyfont[lucida]
Oh, I have tried that; actually I did
\definefontfeature[default][liga=yes,kern=yes,tlig=yes,compose=yes]
as well as \addff{compose}, but it had zero
On 30-9-2010 11:14, Mojca Miklavec wrote:
as well as \addff{compose}, but it had zero effect since I used that
\addff only works for opentype (unless I make a pseudo feature which is
a lot of work for something that is never dynamic)
However compose=yes creates an unacceptable uppercase Č
On 09/10/2010 01:01 PM, Andreas Harder wrote:
Hi all,
I've two questions.
1. Is f|*|f still the right way to prevent a ligature?
2. \setff{noligs} don't seem to have effect, while the defined font is
working. What is wrong?
Have you tried \addff ?
Best wishes,
Taco
tried \addff ?
Yes, I have.
Greeting
Andreas
___
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
, of yourse there is
\addff to change a certain setting but this is only meant for local
changes and not for global range.
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki
just have to set them up, then the \mathaltcal macro becomes
something like:
\def\mathaltcal#1{\addff{ss09}#1\subff{ss09}}
Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry
calligraphic
one, so I did:
\starttext
\setupbodyfont[xits]
\ctxlua{fonts.otf.features.register_base_substitution('ss01')}
\definefontfeature[ss01][mode=base,script=math,ss01=yes]
$\addff{ss01}\cal ABCDEFG$
\stoptext
(I was not expecting \addff to work in math, but anyway).
This works
{fonts.otf.features.register_base_substitution('ss01')}
\definefontfeature[ss01][mode=base,script=math,ss01=yes]
$\addff{ss01}\cal ABCDEFG$
\stoptext
(I was not expecting \addff to work in math, but anyway).
This works, however, but I don't want to set the feature globally:
\starttext
\ctxlua
{fonts.otf.features.register_base_substitution('ss01')}
\definefontfeature[ss01][mode=base,script=math,ss01=yes]
$\addff{ss01}\cal ABCDEFG$
\stoptext
(I was not expecting \addff to work in math, but anyway).
This works, however, but I don't want to set the feature globally:
\starttext
\ctxlua
]
\stoptypescript
\def\bengali#1{{\switchtobodyfont[dwbangla]\addff{indic}\language[ben]#1}}
\usetypescript[MTbook]
\starttext
\bengali{সত্যজিৎ রায়}
\stoptext
সত্যজিৎ isn't rendered correctly in the output---after a the first
two characters, things go wrong. Yet, with the same font
, perhaps like so:
\def\OpticalTest[#1]#2{%
\addff{\OOFeature}%
\definedfont[#2 at \OOSize]%
\setupinterlinespace
\hbox to \textwidth{\clip[width=.39\textwidth,
bottomoffset=\strutdepth]{%
\Mycolor
..\hbox to .39
back, and add \Mycolor to the
\OpticalTest macro, perhaps like so:
\def\OpticalTest[#1]#2{%
\addff{\OOFeature}%
\definedfont[#2 at \OOSize]%
\setupinterlinespace
\hbox to \textwidth{\clip[width=.39\textwidth,
bottomoffset=\strutdepth
=yes]%numerator
\definefontfeature[de][body][dnom=yes]%denominator
in {\addff{in}123}
su {\addff{su}123}
nu {\addff{nu}123}
de {\addff{de}123}
produces only proportional oldstyle figures.
i have a fix for it but first idris has to do some testing with his
fonts as this mechanism was primarily made
\definefontfeature[de][body][dnom=yes]%denominator
in{\addff{in}123}
su{\addff{su}123abc}
nu{\addff{nu}123}
de{\addff{de}123}
The numerals all come out as proportional oldstyle, but the letters work. So,
sinf, sups, numr, and dnom are failing but ordn works.
I was thinking---besides updating to 0.60
,pnum=yes,calt=yes,protrusion=quality,expansion=quality]
\definefontfeature[in][body][sinf=yes]%inferior
\definefontfeature[su][body][sups=yes,ordn=yes]%superior
\definefontfeature[nu][body][numr=yes]%numerator
\definefontfeature[de][body][dnom=yes]%denominator
in {\addff{in}123}
su {\addff{su}123}
nu
]%denominator
in {\addff{in}123}
su {\addff{su}123}
nu {\addff{nu}123}
de {\addff{de}123}
produces only proportional oldstyle figures.
add mode=node to the 'body' feature definitions
Hans
-
Hans
de la Convention}
\stoppublication
\startpublication[k=siNist,t=techreport,
a={{Taylor},{Thompson}},y=2008,
n=2,s=TT08]
\author[]{Barry~N.}[B.~N.]{}{Taylor}
\author[]{Ambler}[A.]{}{Thompson}
\pubyear{2008}
\title{The international system of units ({\addff{sc}si})}
\bibtype{{\addff{sc}nist} Special
in exactly this particular context.
A nice trick i found in the core (typo-cap.mkiv)
\def\sc{\setfontfeature{smallcaps}} % \addff{smallcaps}?
\definefontfeature [default] [default] [mode=node,onum=yes]
\definefontfeature [smallcaps] [default] [smcp=yes]
\setupenumerations[footnote][before=\char\zerocount
\definefontfeature[nu][body][numr=yes]%numerator
\definefontfeature[po][body][pnum=yes,onum=yes]%proportional old style
\newcommand{\fnmstyle}{\addff{nu}\switchtobodyfont[12pt]}
\newcommand{\fntstyle}{\addff{po}}
i was not even aware that \newcommand was there ... probably more a
catch
[style=\hfstyle]
because I'll get an error from:
\setupheader[style=\switchtobodyfont[15pt]]
Is there an easier way?
\setupnote[footnote][location=columns,numbercommand=\fnmstyle,textcommand=\fntstyle,textstyle=\addff{su},align={normal,hanging},split=verystrict,interaction=yes]
I don't know
]%numerator
\definefontfeature[po][body][pnum=yes,onum=yes]%proportional old style
\newcommand{\fnmstyle}{\addff{nu}\switchtobodyfont[12pt]}
\newcommand{\fntstyle}{\addff{po}}
\setupnote[footnote][location=columns,numbercommand=\fnmstyle,textcommand=\fntstyle,textstyle=\addff{su},align={normal,hanging
\usetypescript[test]
\setupalign[hanging,hz]
\setupbodyfont[test,12pt]%
\mainlanguage[en-us]
\showgrid
\starttext
\addff{body}
\input{knuth}
\stoptext
Results in no protrusion or hz. What's wrong?
___
If your question
]
\definefontfeature[nocaps][smcp=no,c2sc=no]
\setupbodyfont[termes]
\starttext
{\addff{caps} People that have gathered their {\tx capital} at the cost of
other people are not seldom {\addff{nocaps} decapitated} in revolutionary
times.}
\stoptext
The result is different from \cap because everything is set
\definefontfeature[nu][default][numr=yes]%numerator
\newcommand{\fnstyle}{\switchtobodyfont[12pt]\addff{su}}
\setupnote[footnote][numbercommand=\fnstyle,textcommand=\fnstyle\tfa]
(Note: my body font is 12pt.)
This is as close as I could get to correcting the problem. When I do
this, the marks
]
\setupinmargin[style=\ss,align=outer]
\setupfootnotedefinition[location=serried,distance=0.5em]
\newcommand{\fnstyle}{\switchtobodyfont[12pt]\addff{su}}
\setupnote[footnote][location=columns,numbercommand=\fnstyle,textcommand=\fnstyle\tfa,align={normal,hanging},interaction=yes]
\setupinteraction
\startcolumnset[footnotes]}
\newcommand{\colpostfoot}{\stopcolumnset\startcolumnset[body]}
\setupfootnotedefinition[location=serried,distance=0.5em]
\newcommand{\fnstyle}{\switchtobodyfont[12pt]\addff{su}}
\setupnote[footnote][numbercommand=\fnstyle,textcommand=\fnstyle\tfa,before=\colprefoot,after
\subtractfontfeaturefromset {..} % merge
\addfontfeaturetofont {..} % overload
\subtractfontfeaturefromfont{..} % overload
\let\addfs\addfontfeaturetoset
\let\subfs\subtractfontfeaturefromset
\let\addff\addfontfeaturetofont
\let\subff\subtractfontfeaturefromfont
there's also \setfontfeature
=latn,script=grek]
\stoptypescript
\setupalign[hanging,hz]
\setupbodyfont[gillLT,12pt]
\ss
1:1234567890 fi fl ffi ffl\addff{smallcaps} test smallcaps
2:\addff{body} 1234567890 fi fl ffi ffl\addff{smallcaps} test smallcaps
In both 1 2, ligatures and small caps fail (though
of font features won't
require twelve times as many switches and feature names as this. I think
there is some easier method for switching---Hans mentioned \addff{}, but
I can't find anything in the docs. If that works, that would make two kinds
of switches, one for some kinds of features
think
there is some easier method for switching---Hans mentioned \addff{}, but
I can't find anything in the docs. If that works, that would make two kinds
of switches, one for some kinds of features and another for other kinds.)
\addff, \subff etc. are rather new commands and therefore only
open type, a dynamic feature switch works
as well: \addff{smallcaps}
some of these mkii things (\os, \sc) are often side effects of tex
originally using cm fonts mostly, where oldstyle were sitting in a math
font so we needed a special command
Hans
(dynamicly) .. from the source:
% \startbuffer
% \definefontfeature[smallcaps][smallcaps][script=latn]
% \definefontfeature[oldstyle] [oldstyle] [script=latn]
%
% \definedfont[name:cambria at 15pt]
%
% Hello there {\setff{smallcaps}capped 123 \setff{oldstyle}123!}\blank
% Hello there {\addff
) .. from the source:
% \startbuffer
% \definefontfeature[smallcaps][smallcaps][script=latn]
% \definefontfeature[oldstyle] [oldstyle] [script=latn]
%
% \definedfont[name:cambria at 15pt]
%
% Hello there {\setff{smallcaps}capped 123 \setff{oldstyle}123!}\blank
% Hello there {\addff{smallcaps}capped
like an o instead of a 0. I'd
like to explicitly turn off old style numerals for those cases, but I'm unsure
how. Any suggestions?
it assumes that you know what is provided by the font ... you cam play
with addff and subff and addfs and subfs (individual features cq.
current set
Hi Hans,
it assumes that you know what is provided by the font ... you cam
play with addff and subff and addfs and subfs (individual features
cq. current set)
I couldn't get the addff/subff stuff working to remove the font feature, but
the following did the trick:
\definefontfeature[default
Matthijs Kooijman wrote:
Hi Hans,
it assumes that you know what is provided by the font ... you cam
play with addff and subff and addfs and subfs (individual features
cq. current set)
I couldn't get the addff/subff stuff working to remove the font feature, but
the following did the trick
,fea2=yes,...fean=yes,...onum=yes]
\definefontfeature[onum][onum=yes]
\definedfont[Serif*default]
\subff{onum}
should subtract onum from the current stack.
These are not accumulative, they only act on the original featureset --
default here -- so no
\subff{featureset1} \addff{featureset2
,mode=node,calt=yes,clig=yes,liga=yes,rlig=yes,tlig=yes]
%\definefont[zapfino][name:zapfino*zapfino]
\definefont[zapfino][file:ZapfinoExtraLTPro]
\define[1]\zapfinoexample
{\page
\bgroup
\definefontfeature[#1][default][mode=node,script=latn,#1=yes]
\zapfino\addff{#1}\input knuth\par
,script=latn,#1=yes]
\zapfino\addff{#1}\input knuth\par
\egroup}
\starttext
\zapfino
%Z Za Zap Zapf Zapfi Zapfin Zapfino
%ÄÖÜäöüß
\processcommalist[ss01,ss02,ss03,ss04,ss05,ss06,ss07,ss08,ss09,ss10,ss11,ss12,ss13,ss14,ss15,ss16,ss17,ss18,ss19,ss20]\zapfinoexample
\stoptext
101 - 150 of 150 matches
Mail list logo