public Glyph LookupScaler(Scaler scaler, LoadFlags loadFlags, uint gIndex, out Node node) { if (parentManager.IsDisposed) throw new ObjectDisposedException("Reference", "Cannot access a disposed object."); IntPtr glyphRef, nodeRef; Error err = FT.FTC_ImageCache_LookupScaler(Reference, scaler.Reference, loadFlags, gIndex, out glyphRef, out nodeRef); if (err != Error.Ok) throw new FreeTypeException(err); node = new Node(nodeRef); return new Glyph(glyphRef, null); }
public SBit Lookup(ImageType type, uint gIndex, out Node node) { if (parentManager.IsDisposed) throw new ObjectDisposedException("Reference", "Cannot access a disposed object."); IntPtr sbitRef, nodeRef; Error err = FT.FTC_SBitCache_Lookup(Reference, type.Reference, gIndex, out sbitRef, out nodeRef); if (err != Error.Ok) throw new FreeTypeException(err); node = new Node(nodeRef); return new SBit(sbitRef); }