CharStrings.java 873 Bytes
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.fontengine.font.cff;

import com.adobe.fontengine.font.InvalidFontException;
import com.adobe.fontengine.font.UnsupportedFontException;
import com.adobe.fontengine.font.cff.CFFByteArray;
import com.adobe.fontengine.font.cff.Index;

public final class CharStrings
extends Index {
    protected CharStrings(CFFByteArray data, int offset) throws InvalidFontException, UnsupportedFontException {
        super(data, offset);
    }

    protected static CharStrings createEmptyCharstrings() throws InvalidFontException, UnsupportedFontException {
        byte[] data = new byte[2];
        data[1] = 0;
        data[0] = 0;
        CFFByteArray.CFFByteArrayBuilder builder = CFFByteArray.getCFFByteArrayBuilderInstance(2);
        builder.addCard16(0);
        return new CharStrings(builder.toCFFByteArray(), 0);
    }
}