Goomento / PageBuilder

Goomento - The Free Magento Page Builder Extension, that allows you to create unique Magento websites using advanced animations, custom CSS, responsive designs, and more, by performing simple actions such as drag and drop.
https://goomento.com
Open Software License 3.0
90 stars 16 forks source link

how to add additional font #13

Closed roman204 closed 2 years ago

roman204 commented 2 years ago

This is a question only...

I have found the position where additional fonts are getting merged... here they are merged but where to add it? \Goomento\PageBuilder\Builder\Fonts::getFonts() the hook is called but nowhere added?!? or am i missing something here?

Thanks in advance for a hint

haihv433 commented 2 years ago

Hi @roman204 Thanks for asking In Goomento, we allow to use font either using Google Fonts or the local one, By that, you need to check this configuration

Goomento > Configuration > Editor > Style > Use Local Font

Turn this on meaning, your site must load the Font at first, the place the font name same as what you have chosen in the Editor

For your question:

Your need to check this function

\Goomento\PageBuilder\Builder\Modules\Frontend::footer

calling by this hook: HooksHelper::addAction('pagebuilder/frontend/footer', [ $this, 'footer' ], 9);

And the AbstractCss will in charge of this

should also checking on this

\Goomento\PageBuilder\Builder\Base\AbstractCss::enqueue

roman204 commented 2 years ago

Thanks, so if i understand it correctly i have to add method the method: \Goomento\PageBuilder\Builder\Modules\Fonts::additionalFonts

haihv433 commented 2 years ago

Which version are you using @roman204, I think I removed this already in the recently version

roman204 commented 2 years ago

i am on 0.2.10

haihv433 commented 2 years ago

It was removed @roman204 Pls checkout a new release of 0.3.1

You can add the font manually by add here image

haihv433 commented 2 years ago

I closed this issue since no activity recently Feel free to re-open it