Example #1
0
 public void init(InputMeta meta)
 {
     style    = meta.readWord();
     penWidth = meta.readShort();
     meta.readWord();
     color = meta.readColor();
 }
Example #2
0
        public void init(InputMeta meta)
        {
            height = Math.Abs(meta.readShort());
            meta.skip(2);
            angle = (float)(meta.readShort() / 1800.0 * Math.PI);
            meta.skip(2);
            bold      = (meta.readShort() >= BOLDTHRESHOLD ? MARKER_BOLD : 0);
            italic    = (meta.readByte() != 0 ? MARKER_ITALIC : 0);
            underline = (meta.readByte() != 0);
            strikeout = (meta.readByte() != 0);
            charset   = meta.readByte();
            meta.skip(3);
            pitchAndFamily = meta.readByte();
            byte[] name = new byte[nameSize];
            int    k;

            for (k = 0; k < nameSize; ++k)
            {
                int c = meta.readByte();
                if (c == 0)
                {
                    break;
                }
                name[k] = (byte)c;
            }
            try {
                faceName = System.Text.Encoding.GetEncoding("windows-1252").GetString(name, 0, k);
            }
            catch (Exception e) {
                e.GetType();
                faceName = System.Text.ASCIIEncoding.ASCII.GetString(name, 0, k);
            }
            faceName = faceName.ToLower();
        }
Example #3
0
 public MetaDo(Stream meta, PdfContentByte cb)
 {
     this.cb   = cb;
     this.meta = new InputMeta(meta);
 }
Example #4
0
 public void init(InputMeta meta)
 {
     style = meta.readWord();
     color = meta.readColor();
     hatch = meta.readWord();
 }