Zinq zinq

Customize font embedding

Posted on: November 26, 2024 by Matt

^0.4.0

We’re excited to introduce a new feature in this release of Zinq: the ability to control font embedding!

By default, Zinq includes two fonts: Inter for general text and Source Code Pro for code snippets. These fonts are carefully selected to provide a clean and professional look for your projects out of the box.

However, we understand that flexibility is key. If you prefer to use different fonts or embed them directly through your own styles, you can now disable Zinq’s default font embedding.

# How to Disable Font Embedding

Just set the inject_fonts option to false in your zinq.php configuration file:

 
'inject_fonts' => false,

Before making this change, be sure to publish the configuration file by running the following command:

 
php artisan vendor:publish --tag=zinq-config

With this change, Zinq will no longer include Inter or Source Code Pro in your project, giving you full control over the fonts you use.


Newsletter

Join other developers and never miss out on new tips, tutorials and Zinq updates!