コード例 #1
0
 /**
  * Constructor for use in subclasses.
  *
  * @param font Parent Type 1 CharString font.
  * @param fontName Name of the font.
  * @param glyphName Name of the glyph.
  */
 protected Type1CharString(IType1CharStringReader font, string fontName, string glyphName)
 {
     this.font      = font;
     this.fontName  = fontName;
     this.glyphName = glyphName;
     this.current   = new SKPoint(0, 0);
 }
コード例 #2
0
 /**
  * Constructor.
  * @param font Parent CFF font
  * @param fontName font name
  * @param glyphName glyph name (or CID as hex string)
  * @param gid GID
  * @param sequence Type 2 char string sequence
  * @param defaultWidthX default width
  * @param nomWidthX nominal width
  */
 public Type2CharString(IType1CharStringReader font, string fontName, string glyphName, int gid, List <object> sequence,
                        int defaultWidthX, int nomWidthX)
     : base(font, fontName, glyphName)
 {
     this.gid      = gid;
     type2sequence = sequence;
     defWidthX     = defaultWidthX;
     nominalWidthX = nomWidthX;
     ConvertType1ToType2(sequence);
 }
コード例 #3
0
 /**
  * Constructs a new Type1CharString object.
  *
  * @param font Parent Type 1 CharString font.
  * @param fontName Name of the font.
  * @param glyphName Name of the glyph.
  * @param sequence Type 1 char string sequence
  */
 public Type1CharString(IType1CharStringReader font, string fontName, string glyphName, List <object> sequence)
     : this(font, fontName, glyphName)
 {
     type1Sequence = sequence;
 }
コード例 #4
0
 /**
  * Constructor.
  *
  * @param font Parent CFF font
  * @param fontName font name
  * @param cid CID
  * @param gid GID
  * @param sequence Type 2 char string sequence
  * @param defaultWidthX default width
  * @param nomWidthX nominal width
  */
 public CIDKeyedType2CharString(IType1CharStringReader font, string fontName, int cid, int gid, List <object> sequence, int defaultWidthX, int nomWidthX)
     : base(font, fontName, cid.ToString("x2"), gid, sequence, defaultWidthX, nomWidthX)
 {
     // glyph name is for debugging only
     this.cid = cid;
 }