Fonts aren't brought along the Page Exporter | Community
Skip to main content
Karl515
Level 5
Feb 20, 2019 9:02 AM UTC
Solved

Fonts aren't brought along the Page Exporter

Here's my clientlibs and under my resources folder I have the fonts. works well on preview but when I export the page with Page Exporter. It doesn't come along. default Page exporter doesn't bring the fonts along?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Karl515
Karl515Accepted solution
Level 5
Feb 22, 2019 2:41 AM UTC

Thanks. I did try but it did not work. But I managed a work around by placing my fonts in dam and using the type=copy, path=to/dam/font

It works but if I reference it from apps, it doesn't work.

is this alright? not standard or something cause fonts should be placed under apps/resource. But it works!

Lemme know what you guys think about this.

But for now, I'll keep my fonts under content/dam.

gauravb10066713​smacdonald2008​

17 replies

smacdonald2008
Level 10
Feb 21, 2019 1:57 PM UTC

I am checking internally to see if there is a known issue.

Translate
Karl515
Karl515Author
Level 5
Feb 21, 2019 8:28 AM UTC

More information:
http://localhost:4502/etc.clientlibs/mySite/clientlibs/clientlib-base.css

this resources on the server also renders like

node design type=copy should include my clientlib-site/resources folder to render font.

Translate
Karl515
Karl515Author
Level 5
Feb 21, 2019 7:05 AM UTC

This is what my code looks like

-Referencing to the correct path.

This is what the converted code looks like

and this the file

-------

Now here's what type-assets did.

Original code:

Converted to zip code:

and the folder structure it gave me.

\

-under that content is the reference image.

-under that var is where the css lies.

If I use type=copy path=font/path it would download the fonts but the css will not directly reference.

Thanks! tell me if you need more information.

Translate
Karl515
Karl515Author
Level 5
Feb 21, 2019 5:41 AM UTC

Thanks for taking time to answer.
But according to content sync

client lib can only be set to js or css ATM.

I tested with otf but what happen was, my design node wasn't brought along with the zip.

Translate
smacdonald2008
Level 10
Feb 21, 2019 12:12 AM UTC

Please test with Gaurav suggestion.

Translate
Gaurav-Behl
Level 10
Feb 20, 2019 7:07 PM UTC

Did you create specific nodes to export each type - woff, ttf, evg, eot etc.? I assume that you'd need to create it.


For example the following configuration node copies the geometrixx clientlibs .js files to the zip file:

"geometrixx.clientlibs.js": {   //any name

    "extension": "ttf",

    "type": "clientlib",  // or try with "resources"

    "path": "/etc/designs/geometrixx/clientlibs/resources",  //path to resources folder

    "jcr:primaryType": "nt:unstructured"  // type of each font

reference -

The Page Exporter

Translate
Karl515
Karl515Author
Level 5
Feb 20, 2019 9:09 AM UTC

If anyone knows a way to export fonts that would be great! Thanks!

Translate