<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vipurthanan on Medium]]></title>
        <description><![CDATA[Stories by Vipurthanan on Medium]]></description>
        <link>https://medium.com/@lessandsass?source=rss-a7b7f77bf20b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*5r0iAHeI5aIotgES.</url>
            <title>Stories by Vipurthanan on Medium</title>
            <link>https://medium.com/@lessandsass?source=rss-a7b7f77bf20b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 15:33:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lessandsass/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Self-hosting the Google Fonts into a Laravel Project]]></title>
            <link>https://medium.com/@lessandsass/self-hosting-the-google-fonts-into-a-laravel-project-05b7afa15c6d?source=rss-a7b7f77bf20b------2</link>
            <guid isPermaLink="false">https://medium.com/p/05b7afa15c6d</guid>
            <dc:creator><![CDATA[Vipurthanan]]></dc:creator>
            <pubDate>Sun, 04 Feb 2024 16:39:40 GMT</pubDate>
            <atom:updated>2024-02-04T16:39:40.929Z</atom:updated>
            <content:encoded><![CDATA[<p>Self-hosted fonts refer to the practice of hosting custom fonts on a website’s server rather than relying on external font services or the default system fonts installed on users’ devices. This allows website owners to have more control over the typography and visual identity of their website by using their own custom-designed or licensed fonts.</p><p>In the past, web designers were limited to using a specific set of web-safe fonts that were commonly available across different platforms. This constraint resulted in a lack of variety and creativity in typography on the web. However, with advancements in web technology, it is now possible to embed custom fonts directly on websites.</p><p>To self-host a font, web designers typically need to include the font files, such as TrueType (TTF) or OpenType (OTF) files, on their server and use CSS (Cascading Style Sheets) to define and apply those custom fonts to specific elements on their web pages. This means that when a user visits the website, the font is loaded from the server, enabling the website to display the desired custom typography.</p><p>Self-hosting fonts offers several advantages. It allows for more consistent branding and design, as the exact font styles chosen by the designers are guaranteed to be displayed on the website, regardless of the device or operating system used by the visitor. Moreover, self-hosted fonts can contribute to a better user experience, as the website’s typography can be optimized for legibility and readability.</p><p>However, there are a few considerations to keep in mind when using self-hosted fonts. Firstly, custom fonts can increase the load time of a website, as font files can be large. To mitigate this, font formats can be optimized for web usage. Additionally, licensing agreements must be respected when using commercial fonts to ensure compliance with copyright regulations. Finally, it is essential to consider fallback fonts or a font stack in the CSS code, so that if the user’s device does not support the custom font, a suitable alternative font will be displayed instead.</p><p>Overall, self-hosted fonts empower web designers to create visually appealing and highly customized typography, adding uniqueness and personality to websites.</p><h4>Part 1 - Create a Laravel 10 Project</h4><p>To create a new Laravel project, you can run the command “laravel new portfolio” in your terminal.</p><h4>Part 2 - Install the Laravel-webfonts package using the composer</h4><p>You can run the command <em>composer require Log1x/laravel-webfonts</em> to install the Laravel-webfonts package in your terminal.</p><pre>composer require Log1x/laravel-webfonts</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_x9tWymdnFwDn5PiMkl52A.png" /></figure><h4>Part 3 - Install the needed fonts using the artisan command</h4><p>To install the needed for your project, you can run the command <em>php artisan webfonts:add</em> in your terminal.</p><pre>php artisan webfonts:add</pre><p>After executing the above command fonts.css file will be created inside the resources/css folder.</p><h4>Part 4 - Choose the needed font or fonts to be installed</h4><p><em>php artisan webfonts:add </em>will promt to you to select the fonts and their varients.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3n9WK69P4dNK27Sawh86sA.png" /></figure><h4>Part 5 - Finally add the font family inside the style tag in your main layout file</h4><pre>&lt;style&gt;<br>    body {<br>        font-family: &#39;Poppins&#39;, sans-serif;<br>    }<br>&lt;/style&gt;</pre><h4>Part 6 - Compile the CSS</h4><p>You can run the command <em>npm run build</em> in your terminal to build your project.</p><pre>npm run build</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05b7afa15c6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>