"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "registerFonts", {
    enumerable: true,
    get: function() {
        return registerFonts;
    }
});
const _path = /*#__PURE__*/ _interop_require_default(require("path"));
const _renderer = require("@react-pdf/renderer");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const baseDir = typeof __dirname !== 'undefined' ? _path.default.join(__dirname, '../../assets/fonts') : '/fonts';
const registerFonts = ()=>{
    if (_renderer.Font.getRegisteredFonts()['GlobalPdfFont']) return;
    _renderer.Font.register({
        family: 'GlobalPdfFont',
        src: _path.default.join(baseDir, 'NotoKufiArabic-Regular.ttf')
    });
    _renderer.Font.register({
        family: 'GlobalPdfFont-Bold',
        src: _path.default.join(baseDir, 'NotoKufiArabic-Bold.ttf')
    });
};

//# sourceMappingURL=registerFonts.js.map