so helpful, thank you!
Hi all -
I found a workaround for embedding base64 fonts in Axure 9.
Convert your font. I used this tool.
Paste the output into a text rectangle in Axure, making sure to name the font family. Hide the rectangle.
Add the following javascript (via the āexternal urlā field of the Open Link command) on page load:
javascript:
document.head.insertAdjacentHTML("beforeend", `<style>[[LVAR1]]</style>` );
void(0);
ā¦assuming LVAR1 is a local variable referring to the text of hidden rectangle. (Note that those are backwards quotes around the style tags.)
Then, just map another font like Arial to this font, or I suppose you can install the font on your local machine and type with that.
Note that if you are on a Mac, make sure itās not swapping quote characters for āsmart quotesā that javascript doesnāt recognize. (Itās a checkbox under Keyboard > Text in the system preferences,
Sample file: embededfont.rp (87.3 KB)
Itāll be great if Axure would ramp up Axure.cloud Project Folders
-> to host Fonts of a dedicated project.
Hi Joseph!
Itās typical that there are separate font files that are being provided for each font style (i.e. Regular, Bold, Italic etc.)
- How can we leverage your solution to make use of those multiple font files?
- Also, Iām not sure how to map the font when multiple files are involved?
I did try just uploading one font file of style (say Regular) and making it Bold just does not work (because it was nothing but faux Bold) the same as it would when uploading a separately encoded font file for the style Bold.
If you can solve this problem for me, nothing like it. Iām sure the community will benefit too greatly as Iāve never seen a solve for when multiple font files are provided for different styles of the same font.
Thanks!
-Mani B
The trick is to load and map each font file individually in your CSS or font manager.
I tried doing that but only the last uploaded style persists and overrides everything else!