/*
 * SDK Pullenti Unitext, version 4.33, fabruary 2026. Copyright (c) 2013-2026, Pullenti. All rights reserved. 
 * Non-Commercial Freeware and Commercial Software. 
 * This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C# project. 
 * The latest version of the code is available on the site www.pullenti.ru
 */

const Utils = require("./../../../unisharp/Utils");

class PdfFontGlyph {
    
    constructor() {
        this.width = 0;
        this.code = 0;
        this._char = '\0';
        this.char2 = '\0';
        this.undefMnem = null;
    }
    
    toString() {
        return (Utils.correctToString((this.code).toString(16).toUpperCase(), 4, true) + " -> '" + ((this._char.charCodeAt(0)) === 0 ? '?' : this._char) + "' (w=" + this.width + ")");
    }
    
    static _new201(_arg1, _arg2) {
        let res = new PdfFontGlyph();
        res.width = _arg1;
        res.code = _arg2;
        return res;
    }
    
    static _new209(_arg1) {
        let res = new PdfFontGlyph();
        res.code = _arg1;
        return res;
    }
}


module.exports = PdfFontGlyph