public void PerTestSetup()
 {
     _face = new Face(TestConstants.PaduakFontLocation, FaceOptions.face_default);
     _font = new Font(20.0f, _face);
     _featureval = _face.FeaturevalForLang("en");
     _segment = _font.MakeSeg(0, _featureval, "hello world", Bidirtl.Nobidi);
 }
 public int Attr(Segment seg, AttrCode index, byte subindex)
 {
     return Graphite2Api.SlotAttr(_slot, seg.SegPtr, index, subindex);
 }