Package com.adobe.fontengine.font.cff
Class Type2ConsumerDefaultImpl
- java.lang.Object
-
- com.adobe.fontengine.font.cff.Type2ConsumerDefaultImpl
-
- All Implemented Interfaces:
Type2Consumer
public class Type2ConsumerDefaultImpl extends Object implements Type2Consumer
Empty implementation of Type2Consumer, useful as a base class for an actual implementation.
-
-
Constructor Summary
Constructors Constructor Description Type2ConsumerDefaultImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabs(double[] stack, int stackDepth)voidadd(double[] stack, int stackDepth)voidand(double[] stack, int stackDepth)voidcallgsubr(double[] stack, int stackDepth, int subr)voidcallsubr(double[] stack, int stackDepth, int subr)voidcntrmask(double[] stack, int stackDepth, com.adobe.fontengine.font.cff.CFFByteArray data, int offset, int length)voiddiv(double[] stack, int stackDepth)voiddrop(double[] stack, int stackDepth)voiddup(double[] stack, int stackDepth)voidendchar(double[] stack, int stackDepth)voideq(double[] stack, int stackDepth)voidexch(double[] stack, int stackDepth)voidflex(double[] stack, int stackDepth)voidflex1(double[] stack, int stackDepth)voidget(double[] stack, int stackDepth)voidglobalColorMe(double[] stack, int stackDepth)voidhflex(double[] stack, int stackDepth)voidhflex1(double[] stack, int stackDepth)voidhhcurveto(double[] stack, int stackDepth)voidhintmask(double[] stack, int stackDepth, com.adobe.fontengine.font.cff.CFFByteArray data, int offset, int length)voidhlineto(double[] stack, int stackDepth)voidhmoveto(double[] stack, int stackDepth)voidhstem(double[] stack, int stackDepth)voidhstemhm(double[] stack, int stackDepth)voidhvcurveto(double[] stack, int stackDepth)voidifelse(double[] stack, int stackDepth)voidimplicit_vstemhm(double[] stack, int stackDepth)Called when there is vstemhm operator implied by a hintmask or cntrmask operator.voidindex(double[] stack, int stackDepth)voidinteger(double[] stack, int stackDepth, int i)voidmoveto(double[] stack, int stackDepth)An absolute moveto (that is, a moveto that is not relative to the current point).voidmul(double[] stack, int stackDepth)voidneg(double[] stack, int stackDepth)voidnot(double[] stack, int stackDepth)voidor(double[] stack, int stackDepth)voidput(double[] stack, int stackDepth)voidrandom(double[] stack, int stackDepth)voidrcurveline(double[] stack, int stackDepth)voidreal(double[] stack, int stackDepth, double a)voidreturn_op(double[] stack, int stackDepth)voidrlinecurve(double[] stack, int stackDepth)voidrlineto(double[] stack, int stackDepth)voidrmoveto(double[] stack, int stackDepth)voidroll(double[] stack, int stackDepth)voidrrcurveto(double[] stack, int stackDepth)booleanseac(double[] stack, int stackDepth)voidsqrt(double[] stack, int stackDepth)voidsub(double[] stack, int stackDepth)voidvhcurveto(double[] stack, int stackDepth)voidvlineto(double[] stack, int stackDepth)voidvmoveto(double[] stack, int stackDepth)voidvstem(double[] stack, int stackDepth)voidvstemhm(double[] stack, int stackDepth)voidvvcurveto(double[] stack, int stackDepth)booleanwidth(double w)
-
-
-
Method Detail
-
abs
public void abs(double[] stack, int stackDepth)- Specified by:
absin interfaceType2Consumer
-
add
public void add(double[] stack, int stackDepth)- Specified by:
addin interfaceType2Consumer
-
and
public void and(double[] stack, int stackDepth)- Specified by:
andin interfaceType2Consumer
-
callgsubr
public void callgsubr(double[] stack, int stackDepth, int subr)- Specified by:
callgsubrin interfaceType2Consumersubr- the index of the global subroutine which is called.
-
callsubr
public void callsubr(double[] stack, int stackDepth, int subr)- Specified by:
callsubrin interfaceType2Consumersubr- the index of the local subroutine which is called.
-
cntrmask
public void cntrmask(double[] stack, int stackDepth, com.adobe.fontengine.font.cff.CFFByteArray data, int offset, int length) throws InvalidFontException- Specified by:
cntrmaskin interfaceType2Consumerdata- holds the charstring (or subroutine) being interpretedoffset- the index of the first byte representing the cntrmasklength- the number of bytes in the cntrmask- Throws:
InvalidFontException
-
div
public void div(double[] stack, int stackDepth)- Specified by:
divin interfaceType2Consumer
-
drop
public void drop(double[] stack, int stackDepth)- Specified by:
dropin interfaceType2Consumer
-
dup
public void dup(double[] stack, int stackDepth)- Specified by:
dupin interfaceType2Consumer
-
endchar
public void endchar(double[] stack, int stackDepth)- Specified by:
endcharin interfaceType2Consumer
-
eq
public void eq(double[] stack, int stackDepth)- Specified by:
eqin interfaceType2Consumer
-
exch
public void exch(double[] stack, int stackDepth)- Specified by:
exchin interfaceType2Consumer
-
flex
public void flex(double[] stack, int stackDepth)- Specified by:
flexin interfaceType2Consumer
-
flex1
public void flex1(double[] stack, int stackDepth)- Specified by:
flex1in interfaceType2Consumer
-
real
public void real(double[] stack, int stackDepth, double a)- Specified by:
realin interfaceType2Consumera- the real number which is pushed on the stack by a 5 byte number operator.
-
get
public void get(double[] stack, int stackDepth)- Specified by:
getin interfaceType2Consumer
-
hflex
public void hflex(double[] stack, int stackDepth)- Specified by:
hflexin interfaceType2Consumer
-
hflex1
public void hflex1(double[] stack, int stackDepth)- Specified by:
hflex1in interfaceType2Consumer
-
hhcurveto
public void hhcurveto(double[] stack, int stackDepth)- Specified by:
hhcurvetoin interfaceType2Consumer
-
hintmask
public void hintmask(double[] stack, int stackDepth, com.adobe.fontengine.font.cff.CFFByteArray data, int offset, int length) throws InvalidFontException- Specified by:
hintmaskin interfaceType2Consumerdata- holds the charstring (or subroutine) being interpretedoffset- the index of the first byte representing the hintmasklength- the number of bytes in the hintmask- Throws:
InvalidFontException
-
hlineto
public void hlineto(double[] stack, int stackDepth)- Specified by:
hlinetoin interfaceType2Consumer
-
hmoveto
public void hmoveto(double[] stack, int stackDepth)- Specified by:
hmovetoin interfaceType2Consumer
-
moveto
public void moveto(double[] stack, int stackDepth)Description copied from interface:Type2ConsumerAn absolute moveto (that is, a moveto that is not relative to the current point). stack[0] contains the new x. stack[1] contains the new y.- Specified by:
movetoin interfaceType2Consumer
-
hstem
public void hstem(double[] stack, int stackDepth)- Specified by:
hstemin interfaceType2Consumer
-
hstemhm
public void hstemhm(double[] stack, int stackDepth)- Specified by:
hstemhmin interfaceType2Consumer
-
hvcurveto
public void hvcurveto(double[] stack, int stackDepth)- Specified by:
hvcurvetoin interfaceType2Consumer
-
ifelse
public void ifelse(double[] stack, int stackDepth)- Specified by:
ifelsein interfaceType2Consumer
-
implicit_vstemhm
public void implicit_vstemhm(double[] stack, int stackDepth)Description copied from interface:Type2ConsumerCalled when there is vstemhm operator implied by a hintmask or cntrmask operator.- Specified by:
implicit_vstemhmin interfaceType2Consumer
-
index
public void index(double[] stack, int stackDepth)- Specified by:
indexin interfaceType2Consumer
-
integer
public void integer(double[] stack, int stackDepth, int i)- Specified by:
integerin interfaceType2Consumeri- the integer which is pushed on the stack by an integer operator.
-
mul
public void mul(double[] stack, int stackDepth)- Specified by:
mulin interfaceType2Consumer
-
neg
public void neg(double[] stack, int stackDepth)- Specified by:
negin interfaceType2Consumer
-
not
public void not(double[] stack, int stackDepth)- Specified by:
notin interfaceType2Consumer
-
or
public void or(double[] stack, int stackDepth)- Specified by:
orin interfaceType2Consumer
-
put
public void put(double[] stack, int stackDepth)- Specified by:
putin interfaceType2Consumer
-
random
public void random(double[] stack, int stackDepth)- Specified by:
randomin interfaceType2Consumer
-
rcurveline
public void rcurveline(double[] stack, int stackDepth)- Specified by:
rcurvelinein interfaceType2Consumer
-
return_op
public void return_op(double[] stack, int stackDepth)- Specified by:
return_opin interfaceType2Consumer
-
rlinecurve
public void rlinecurve(double[] stack, int stackDepth)- Specified by:
rlinecurvein interfaceType2Consumer
-
rlineto
public void rlineto(double[] stack, int stackDepth)- Specified by:
rlinetoin interfaceType2Consumer
-
rmoveto
public void rmoveto(double[] stack, int stackDepth)- Specified by:
rmovetoin interfaceType2Consumer
-
roll
public void roll(double[] stack, int stackDepth)- Specified by:
rollin interfaceType2Consumer
-
rrcurveto
public void rrcurveto(double[] stack, int stackDepth)- Specified by:
rrcurvetoin interfaceType2Consumer
-
sqrt
public void sqrt(double[] stack, int stackDepth)- Specified by:
sqrtin interfaceType2Consumer
-
sub
public void sub(double[] stack, int stackDepth)- Specified by:
subin interfaceType2Consumer
-
vhcurveto
public void vhcurveto(double[] stack, int stackDepth)- Specified by:
vhcurvetoin interfaceType2Consumer
-
vlineto
public void vlineto(double[] stack, int stackDepth)- Specified by:
vlinetoin interfaceType2Consumer
-
vmoveto
public void vmoveto(double[] stack, int stackDepth)- Specified by:
vmovetoin interfaceType2Consumer
-
vstem
public void vstem(double[] stack, int stackDepth)- Specified by:
vstemin interfaceType2Consumer
-
vstemhm
public void vstemhm(double[] stack, int stackDepth)- Specified by:
vstemhmin interfaceType2Consumer
-
vvcurveto
public void vvcurveto(double[] stack, int stackDepth)- Specified by:
vvcurvetoin interfaceType2Consumer
-
width
public boolean width(double w)
- Specified by:
widthin interfaceType2Consumer- Parameters:
w- the width recorded in the charstring, to be added to the nominal width of the font; if this method is not called, the width of this outline is the default width of the font.- Returns:
- true iff parsing should continue
-
seac
public boolean seac(double[] stack, int stackDepth)- Specified by:
seacin interfaceType2Consumer- Parameters:
stack- the stack containing the following params: Optionally, the advance width. If the stackDepth is 5, the first element on the stack is the width. adx: the horizontal position of the accent character relative to the base character's origin. ady: the vertical position of the accent character relative to the base character's origin. bchar: the character code of the base character in Standard Encoding. achar: the character code of the accent character in Standard Encoding.- Returns:
- true if the parser should parse the base and accent characters. false if parsing should not recurse into those characters.
-
globalColorMe
public void globalColorMe(double[] stack, int stackDepth)- Specified by:
globalColorMein interfaceType2Consumer
-
-