Skip to main content
Participant
Jun 17, 2022 9:41 PM UTC
Answered

CFDocument - Custom Fonts Not Working (CF 2021)

Hi,

In previous CF versions I had TTF fonts registered in "Font Management" for "Barcode Printing" purposes in a cfdocument without issues. The font shows the same name “without spaces” for all 3 options “Font Family”, “Font Face” and “Postscript Name” and I use that name as in-line CSS style to show barcodes on generated PDF’s.

Now in CF 2021, I cannot make them work.

So far, I have tried:

  • Multiple installs in "Font Management" with different paths, making sure folders did not have user’s restrictions (permissions), using different fonts; and making sure they show as usable in PDF/FlashPaper column.
  • Install font also in Windows.
  • Restart CF Services.
  • Restart physical server.
  • Convert font to WOFF (Shows in browser using CSS @11220649-face / in-line styling) but does not work inside the cfdocument.

Any other suggestion to fix this in cfdocument?

    ScubaPRCorrect answer
    Participant
    Jun 18, 2022 3:19 AM UTC

    Solved! After more than 4hrs this was my solution on CF 2021 (Windows):

    • Delete the “User Defined Font” in Coldfusion Font Management.
    • Lookup the Font in Windows explorer, “Right Click” and make sure to select “Install for All Users”. This action should make a copy of the TTF into the “\Windows\Fonts\” directory. Navigate to that folder and make sure the *.TTF is in there.
    • Restart the CF Application Service and log into the CF Admin.
    • The font should now appear under the “Current System Fonts” in Coldfusion Font Management.
    • If so, you can reference the font using CSS inside the CFDOCUMENT tag and it should show.

    3 replies

    ScubaPRAuthorCorrect answer
    Participant
    Jun 18, 2022 3:19 AM UTC

    Solved! After more than 4hrs this was my solution on CF 2021 (Windows):

    • Delete the “User Defined Font” in Coldfusion Font Management.
    • Lookup the Font in Windows explorer, “Right Click” and make sure to select “Install for All Users”. This action should make a copy of the TTF into the “\Windows\Fonts\” directory. Navigate to that folder and make sure the *.TTF is in there.
    • Restart the CF Application Service and log into the CF Admin.
    • The font should now appear under the “Current System Fonts” in Coldfusion Font Management.
    • If so, you can reference the font using CSS inside the CFDOCUMENT tag and it should show.
    Translate
    BKBK
    Community Expert
    Community Expert
    Jun 20, 2022 12:07 PM UTC

    @ScubaPR , thanks for sharing the solution.

    Translate