public static TextBlob makeFromRSXform()

in shared/java/TextBlob.java [132:148]


    public static TextBlob makeFromRSXform(short[] glyphs, RSXform[] xform, Font font) {
        try {
            assert glyphs.length == xform.length : "glyphs.length " + glyphs.length + " != xform.length " + xform.length;
            float[] floatXform = new float[xform.length * 4];
            for (int i = 0; i < xform.length; ++i) {
                floatXform[i * 4]     = xform[i]._scos;
                floatXform[i * 4 + 1] = xform[i]._ssin;
                floatXform[i * 4 + 2] = xform[i]._tx;
                floatXform[i * 4 + 3] = xform[i]._ty;
            }
            Stats.onNativeCall();
            long ptr = _nMakeFromRSXform(glyphs, floatXform, Native.getPtr(font));
            return ptr == 0 ? null : new TextBlob(ptr);
        } finally {
            Reference.reachabilityFence(font);
        }
    }