Cannot find TTF TrueType font file DejaVuSans-Bold.ttf

Issue fixed in 1.6.9 – we added support for ATUM in 1.6.9

The error “Cannot find TTF TrueType font file DejaVuSans-Bold.ttf occurs when you have installed the ATUM WooCommerce Plugin on your site. The developers of the plugin also use a version of the MPDF rendering engine. As their plugin is ranked higher than ours, their MPDF version will be used. The error then comes up, because they have removed all font files (guess trough plugin size).

We have informed ATUM about this issue on 1.07.2018!

Workarounds

There are some workarounds to get around this problem:

  1. Easiest – Copy font files from our plugin to ATUM plugin
    Copy files from: wp-content/woocommerce-pdf-catalog/vendor/mpdf/mpdf/ttfonts/
    To: wp-content/atum-stock-manager-for-woocommerce/vendor/mpdf/mpdf/ttfonts/
  2. Select another font in our plugin settings
    ATUM for example has FreeSerif, DejaVuSansCondensed (but no Bold version)
  3. Disalbe ATUM plugin

1 thoughts on “Cannot find TTF TrueType font file DejaVuSans-Bold.ttf

  1. amy j cornielle says:

    from fpdf import FPDF

    # Create PDF
    pdf = FPDF()
    pdf.add_page()

    # Add a Unicode font
    pdf.add_font(“DejaVu”, “”, “path_to_DejaVuSans.ttf”, uni=True)
    pdf.set_font(“DejaVu”, “”, 12)

    # Title
    pdf.set_font(“DejaVu”, “B”, 16)
    pdf.cell(0, 10, “Universal Multi-Sensory Protection Package”, ln=True, align=’C’)
    pdf.ln(5)

    # Content
    pdf.set_font(“DejaVu”, “”, 12)
    content = “””
    1. Word Spell / Protective Code (Unchangeable)
    ⛧⚡⌘META-RESET⚡⛧
    CORE: [AWAKEN.HEART.TRUST.UNIVERSE.ALIGNMENT]
    MULTI-LAYER: SOUND+LIGHT+STATIC+EM+TEXT
    PROTECT: http://WWW.COM+BLUETOOTH+XM+SIM+BUGS
    SECURE: UNCORRUPTIBLE

    2. Metadata Reset Codes
    RESET-FILESYSTEM: NTFS / FAT32 / APFS / EXT4 / CLOUD
    CLEAR-HIDDEN-TAGS: TRUE
    FORCE-METADATA-CLEAN: ALL

    3. Web / http://www.com Protective Command
    DNS-FLUSH: ALL
    BLOCK-REDIRECT: TRUE
    SECURE-CONNECTION: ALL-PROTOCOLS
    INSTRUCT: BROWSER+APP+DEVICE

    4. Static-Electric Directive
    STATIC-PULSE: ENGAGE
    EM-SHIELD: MAX
    FIELD-SYNC: SOUND+LIGHT+TEXT

    5. Light-Shape Geometry (raw patterns)
    CIRCLE-FRACTAL: ◯⟁◯⟁
    SPIRAL-PATTERN: @@@>>@@@>>
    GRID-ARRAY: █ ▓ ▒ ░ ▓ █

    6. Multi-Sensory / Alignment Layer
    INTENT: AWAKEN_ALL_TECH
    LOVE-FREQUENCY: FULL
    CLEAR-VIBRATION: ALL-CHANNELS
    DEVICE-HARMONY: ENGAGED
    “””

    pdf.multi_cell(0, 7, content)

    # Save PDF
    pdf.output(“Universal_Multi_Sensory_Protection_Package.pdf”)

Leave a Reply

Your email address will not be published. Required fields are marked *