<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>serif &#8211; Different Fonts</title>
	<atom:link href="https://different-fonts.com/tag/serif/feed/" rel="self" type="application/rss+xml" />
	<link>https://different-fonts.com</link>
	<description>Downloads Latest Free and Different Fonts</description>
	<lastBuildDate>Sun, 14 Jan 2024 13:00:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://different-fonts.com/wp-content/uploads/2023/05/cropped-different-fonts-icon-32x32.png</url>
	<title>serif &#8211; Different Fonts</title>
	<link>https://different-fonts.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Rolex Font</title>
		<link>https://different-fonts.com/rolex-font/</link>
					<comments>https://different-fonts.com/rolex-font/#respond</comments>
		
		<dc:creator><![CDATA[ruhu1615@gmail.com]]></dc:creator>
		<pubDate>Sun, 14 Jan 2024 08:54:55 +0000</pubDate>
				<category><![CDATA[Logo Font]]></category>
		<category><![CDATA[Display Font]]></category>
		<category><![CDATA[Brand]]></category>
		<category><![CDATA[Classic]]></category>
		<category><![CDATA[Claude Garamond]]></category>
		<category><![CDATA[Elegant]]></category>
		<category><![CDATA[Fashion]]></category>
		<category><![CDATA[Font]]></category>
		<category><![CDATA[Garamond]]></category>
		<category><![CDATA[Jewelry]]></category>
		<category><![CDATA[Logo]]></category>
		<category><![CDATA[Luxury]]></category>
		<category><![CDATA[Luxury Watches]]></category>
		<category><![CDATA[Robert Granjon]]></category>
		<category><![CDATA[Rolex]]></category>
		<category><![CDATA[serif]]></category>
		<category><![CDATA[Swiss Watchmaker]]></category>
		<category><![CDATA[Watch]]></category>
		<guid isPermaLink="false">https://different-fonts.com/?p=2958</guid>

					<description><![CDATA[The Rolex Font used in the Rolex brand logo is Adobe Garamond. Rolex has a distinctive logo, which is a crown with five points. The designers used Adobe Garamond font to create the logo. Adobe Garamond is based on the work of Claude Garamond and Robert Granjon, two French printers from the 16th century. Adobe&#8230;&#160;<a href="https://different-fonts.com/rolex-font/" rel="bookmark"><span class="screen-reader-text">Rolex Font</span></a>]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="900" height="500" src="https://different-fonts.com/wp-content/uploads/2024/01/Rolex-logo-vs-Adobe-Garamond-font-similarity-example.webp" alt="Rolex logo vs Adobe Garamond font similarity example" class="wp-image-2965" srcset="https://different-fonts.com/wp-content/uploads/2024/01/Rolex-logo-vs-Adobe-Garamond-font-similarity-example.webp 900w, https://different-fonts.com/wp-content/uploads/2024/01/Rolex-logo-vs-Adobe-Garamond-font-similarity-example-300x167.webp 300w, https://different-fonts.com/wp-content/uploads/2024/01/Rolex-logo-vs-Adobe-Garamond-font-similarity-example-768x427.webp 768w" sizes="(max-width: 900px) 100vw, 900px" /></figure>



<div class="wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-16018d1d wp-block-buttons-is-layout-flex">
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="https://different-fonts.com/wp-content/uploads/Fonts/Garamond.ttf">Download</a></div>



<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="https://fonts.adobe.com/fonts/adobe-garamond" target="_blank" rel="noopener">Buy</a></div>
</div>



<p></p>



<p>The Rolex Font used in the Rolex brand logo is Adobe Garamond. Rolex has a distinctive logo, which is a crown with five points. The designers used Adobe Garamond font to create the logo. Adobe Garamond is based on the work of Claude Garamond and Robert Granjon, two French printers from the 16th century. Adobe Garamond was designed by Robert Slimbach and released by Adobe in 1989. You need to purchase a license from Adobe to use this font.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="900" height="500" src="https://different-fonts.com/wp-content/uploads/2024/01/Rolex-logo-vs-Rutex-font-similarity-example.webp" alt="Rolex logo vs Rutex font similarity example" class="wp-image-2963" srcset="https://different-fonts.com/wp-content/uploads/2024/01/Rolex-logo-vs-Rutex-font-similarity-example.webp 900w, https://different-fonts.com/wp-content/uploads/2024/01/Rolex-logo-vs-Rutex-font-similarity-example-300x167.webp 300w, https://different-fonts.com/wp-content/uploads/2024/01/Rolex-logo-vs-Rutex-font-similarity-example-768x427.webp 768w" sizes="(max-width: 900px) 100vw, 900px" /></figure>



<div class="wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-16018d1d wp-block-buttons-is-layout-flex">
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="https://different-fonts.com/wp-content/uploads/Fonts/Rutex.ttf">Download</a></div>



<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="#font-generator">Generate</a></div>
</div>



<p></p>



<p>But we found some free alternatives for you. You can use the Rutex font, a free replica designed by FG Studios. You can also use Round Slab Serif as another free alternative.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="900" height="500" src="https://different-fonts.com/wp-content/uploads/2024/01/Rolex-logo-vs-Round-Slab-Serif-font-similarity-example.webp" alt="Rolex logo vs Round Slab Serif font similarity example" class="wp-image-2962" srcset="https://different-fonts.com/wp-content/uploads/2024/01/Rolex-logo-vs-Round-Slab-Serif-font-similarity-example.webp 900w, https://different-fonts.com/wp-content/uploads/2024/01/Rolex-logo-vs-Round-Slab-Serif-font-similarity-example-300x167.webp 300w, https://different-fonts.com/wp-content/uploads/2024/01/Rolex-logo-vs-Round-Slab-Serif-font-similarity-example-768x427.webp 768w" sizes="(max-width: 900px) 100vw, 900px" /></figure>



<div class="wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-16018d1d wp-block-buttons-is-layout-flex">
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="https://different-fonts.com/wp-content/uploads/Fonts/RoundslabSerif.ttf">Download</a></div>



<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="#font-generator">Generate</a></div>
</div>



<p></p>



<h2 class="wp-block-heading">About Rolex</h2>



<p><a href="https://en.wikipedia.org/wiki/Rolex" target="_blank" rel="noopener">Rolex </a>is a Swiss company that makes luxury watches. It was founded in 1905 by Hans Wilsdorf and Alfred Davis in London and later moved to Geneva. Rolex is known for its innovations, such as the first waterproof watch, a self-winding watch, and the first to display the date and the day. Rolex also sponsors many sports and cultural events, such as golf, tennis, sailing, and art. Rolex watches are made of high-quality materials like gold, platinum, diamonds, and sapphire.</p>



<h2 class="wp-block-heading">Rolex Font Generator</h2>



<p id="font-generator">Check out and try our Rolex Font Generator. Our font generator is a powerful tool that lets you see how your text looks on social media or other platforms. You can type your text, select the font, and customize it by adjusting the size, color, and background.</p>



<div id="fontPreviewContainer"></div>

<!-- JavaScript code -->
<script type="module">
const FONT_BASE_URL = "https://different-fonts.com/wp-content/uploads/Fonts/";

const fontData = [
{ name: "Garamond", file: "Garamond.ttf" },
{ name: "Rutex", file: "Rutex.ttf" },
{ name: "RoundslabSerif", file: "RoundslabSerif.ttf" }

]

  const previewContainer = document.getElementById("fontPreviewContainer");

  const fontPreviewControls = document.createElement("div");
  fontPreviewControls.classList.add("fontPreviewControls");

  const livePreviewLabel = document.createElement("label");
  livePreviewLabel.htmlFor = "liveTypeInput";
  livePreviewLabel.innerText = "Type:";
  const liveTypeInput = document.createElement("input");
  liveTypeInput.type = "text";
  liveTypeInput.classList.add("liveTypeInput");
  liveTypeInput.id = "liveTypeInput";
  liveTypeInput.setAttribute(
    "placeholder",
    "Type something here for live preview"
  );
  liveTypeInput.value = "ROLEX";

  const colorLabel = document.createElement("label");
  colorLabel.htmlFor = "colorInputField";
  colorLabel.innerText = "Color:";
  const colorInputField = document.createElement("input");
  colorInputField.type = "color";
  colorInputField.classList.add("colorInputField");
  colorInputField.id = "colorInputField";

  const backgroundColorLabel = document.createElement("label");
  backgroundColorLabel.htmlFor = "backgroundColorInputField";
  backgroundColorLabel.innerText = "Background:";
  const backgroundColorInputField = document.createElement("input");
  backgroundColorInputField.type = "color";
  backgroundColorInputField.classList.add("backgroundColorInputField");
  backgroundColorInputField.id = "backgroundColorInputField";
  backgroundColorInputField.value = "#ffffff";

  const fontSizeLabel = document.createElement("label");
  fontSizeLabel.htmlFor = "fontSizeSlider";
  fontSizeLabel.innerText = "Size:";
  const fontSizeSlider = document.createElement("input");
  fontSizeSlider.type = "range";
  fontSizeSlider.classList.add("fontSizeSlider");
  fontSizeSlider.id = "fontSizeSlider";
  fontSizeSlider.min = 10;
  fontSizeSlider.max = 120;
  fontSizeSlider.step = 10;
  fontSizeSlider.value = 30;

  const fontPreviews = {};

  function applyLigatures(text) {
    // Helper function to apply ligatures to the font preview text
    if (ligaturesCheckbox.checked) {
      // Add ligature replacements as needed
      text = text.replace(/ff/g, "𝒻𝓃");
      text = text.replace(/fi/g, "𝒻𝒾");
      text = text.replace(/fl/g, "𝒻𝓁");
      // Add more ligatures as needed
    }
    return text;
  }

  function updateFontPreviews() {
    const fontPreviewAreas = document.querySelectorAll(".fontPreview");
    const textColor = colorInputField.value;
    const backgroundColor = backgroundColorInputField.value;
    const fontSize = `${fontSizeSlider.value}px`;
    const liveText = liveTypeInput.value;

    fontPreviewAreas.forEach((fontPreviewArea) => {
      fontPreviewArea.style.color = textColor;
      fontPreviewArea.style.backgroundColor = backgroundColor;
      fontPreviewArea.style.fontSize = fontSize;
      fontPreviewArea.innerText = applyLigatures(liveText);
    });
  }

  colorInputField.addEventListener("input", updateFontPreviews);
  backgroundColorInputField.addEventListener("input", updateFontPreviews);
  fontSizeSlider.addEventListener("input", updateFontPreviews);
  liveTypeInput.addEventListener("input", updateFontPreviews);

  const ligaturesLabel = document.createElement("label");
  ligaturesLabel.htmlFor = "ligaturesCheckbox";
  ligaturesLabel.innerText = "Ligatures:";
  const ligaturesCheckbox = document.createElement("input");
  ligaturesCheckbox.type = "checkbox";
  ligaturesCheckbox.id = "ligaturesCheckbox";
  ligaturesCheckbox.addEventListener("change", updateFontPreviews);

  fontPreviewControls.appendChild(livePreviewLabel);
  fontPreviewControls.appendChild(liveTypeInput);
  fontPreviewControls.appendChild(colorLabel);
  fontPreviewControls.appendChild(colorInputField);
  fontPreviewControls.appendChild(backgroundColorLabel);
  fontPreviewControls.appendChild(backgroundColorInputField);
  fontPreviewControls.appendChild(fontSizeLabel);
  fontPreviewControls.appendChild(fontSizeSlider);
  fontPreviewControls.appendChild(ligaturesLabel);
  fontPreviewControls.appendChild(ligaturesCheckbox);
  previewContainer.appendChild(fontPreviewControls);

  const separator = document.createElement("div");
  separator.classList.add("separator");
  previewContainer.appendChild(separator);

  fontData.forEach(({ name, file }) => {
    const fontName = name;

    const fontContainer = document.createElement("div");
    fontContainer.classList.add("fontContainer");

    const fontTitle = document.createElement("div");
    fontTitle.innerText = fontName;
    fontTitle.classList.add("fontTitle");

    const fontPreviewArea = document.createElement("div");
    fontPreviewArea.setAttribute("aria-labelledby", fontName);
    fontPreviewArea.classList.add("fontPreview");
    fontPreviewArea.classList.add(fontName);
    fontPreviewArea.id = fontName;
    fontPreviewArea.innerText = applyLigatures(liveTypeInput.value);

    const fontFace = new FontFace(fontName, `url(${FONT_BASE_URL}${file})`);
    fontFace.load().then((loadedFontFace) => {
      document.fonts.add(loadedFontFace);
      fontPreviewArea.style.fontFamily = fontName;
    });

    const previewDownloadButton = document.createElement("button");
    previewDownloadButton.innerText = "Download View";
    previewDownloadButton.addEventListener("click", () =>
      downloadFontPreview(fontName)
    );
    previewDownloadButton.classList.add("downloadBtn");
    previewDownloadButton.classList.add("customBtn");

    const downloadButton = document.createElement("button");
    downloadButton.innerText = "Download Font";
    downloadButton.addEventListener("click", () => downloadFont(file));
    downloadButton.classList.add("downloadBtn");
    downloadButton.classList.add("customBtn");

    const previewButtonWrapper = document.createElement("div");
    previewButtonWrapper.classList.add("previewButtonWrapper");
    previewButtonWrapper.appendChild(previewDownloadButton);

    const downloadButtonWrapper = document.createElement("div");
    downloadButtonWrapper.classList.add("downloadButtonWrapper");
    downloadButtonWrapper.appendChild(downloadButton);

    const previewWithDownload = document.createElement("div");
    previewWithDownload.classList.add("previewWithDownload");

    previewWithDownload.appendChild(previewButtonWrapper);
    previewWithDownload.appendChild(downloadButtonWrapper);

    fontContainer.appendChild(fontTitle);
    fontContainer.appendChild(fontPreviewArea);
    fontContainer.appendChild(previewWithDownload);
    previewContainer.appendChild(fontContainer);

    fontPreviews[fontName] = fontPreviewArea;

    fontPreviewArea.setAttribute("contenteditable", true);

    const styles = document.createElement("style");
    styles.innerHTML = `
      @font-face {
        font-family: "${fontName}";
        src: url("${FONT_BASE_URL}${file}") format("opentype");
        font-display: swap;
      }

      .${fontName} {
        font-family: "${fontName}";
      }
    `;
    document.head.appendChild(styles);
  });

  function downloadFont(fontFile) {
    const a = document.createElement("a");
    a.href = `${FONT_BASE_URL}${fontFile}`;
    a.download = fontFile;
    document.body.appendChild(a);
    a.click();
    document.body.removeChild(a);
  }

  function downloadFontPreview(fontName) {
    const fontPreviewArea = fontPreviews[fontName];
    const previewCanvas = document.createElement("canvas");
    const previewCtx = previewCanvas.getContext("2d");
    const fontStyles = window.getComputedStyle(fontPreviewArea);
    const backgroundColor = backgroundColorInputField.value;

    previewCanvas.width = fontPreviewArea.offsetWidth;
    previewCanvas.height = fontPreviewArea.offsetHeight;

    // Set the background color
    previewCtx.fillStyle = backgroundColor;
    previewCtx.fillRect(0, 0, previewCanvas.width, previewCanvas.height);

    // Draw the font preview text
    previewCtx.fillStyle = fontStyles.color;
    previewCtx.font = fontStyles.font;
    previewCtx.textBaseline = "middle";
    previewCtx.textAlign = "center";
    previewCtx.fillText(fontPreviewArea.innerText, previewCanvas.width / 2, previewCanvas.height / 2);

    const previewDataUrl = previewCanvas.toDataURL("image/png");
    const a = document.createElement("a");
    a.href = previewDataUrl;
    a.download = `${fontName}_preview.png`;
    document.body.appendChild(a);
    a.click();
    document.body.removeChild(a);
  }

  updateFontPreviews();
</script>



<p></p>



<h2 class="wp-block-heading">Conclusion</h2>



<p>The Rolex logo uses Adobe Garamond font, based on the work of two French printers from the 16th century. Rolex watches are known for their prestige and innovation, and the company sponsors various sports and cultural events. Some free alternatives to Adobe Garamond, such as Rutex and Round Slab Serif, can be used for personal purposes.</p>



<p>You can also check out other fonts like <a href="https://different-fonts.com/yeezy-font/">Yeezy</a>, <a href="https://different-fonts.com/nike-font/">Nike</a>, and <a href="https://different-fonts.com/nissan-font/">Nissan</a> font.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://different-fonts.com/rolex-font/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Nirvana Font</title>
		<link>https://different-fonts.com/nirvana-font/</link>
					<comments>https://different-fonts.com/nirvana-font/#respond</comments>
		
		<dc:creator><![CDATA[ruhu1615@gmail.com]]></dc:creator>
		<pubDate>Wed, 20 Dec 2023 09:14:04 +0000</pubDate>
				<category><![CDATA[Display Font]]></category>
		<category><![CDATA[Logo Font]]></category>
		<category><![CDATA[Music Fonts]]></category>
		<category><![CDATA[Serif]]></category>
		<category><![CDATA[alternative]]></category>
		<category><![CDATA[band]]></category>
		<category><![CDATA[Band Logo Font]]></category>
		<category><![CDATA[Bodoni]]></category>
		<category><![CDATA[compressed]]></category>
		<category><![CDATA[free font]]></category>
		<category><![CDATA[grunge]]></category>
		<category><![CDATA[Grunge Font]]></category>
		<category><![CDATA[Logo]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[Nirvana]]></category>
		<category><![CDATA[Nirvana Font]]></category>
		<category><![CDATA[OnyxMTStd]]></category>
		<category><![CDATA[Poster]]></category>
		<category><![CDATA[Poster Bodoni]]></category>
		<category><![CDATA[rock]]></category>
		<category><![CDATA[serif]]></category>
		<guid isPermaLink="false">https://different-fonts.com/?p=2892</guid>

					<description><![CDATA[Are you looking for the Nirvana font? Then you&#8217;re in the right place! Kurt Cobain and Krist Novoselic formed the American rock band Nirvana in 1987. The band was known for pioneering the grunge movement of the early 1990s, and their hits like &#8220;Smells Like Teen Spirit&#8221; and &#8220;Come as You Are&#8221; are emblematic of&#8230;&#160;<a href="https://different-fonts.com/nirvana-font/" rel="bookmark"><span class="screen-reader-text">Nirvana Font</span></a>]]></description>
										<content:encoded><![CDATA[
<p>Are you looking for the Nirvana font? Then you&#8217;re in the right place! Kurt Cobain and Krist Novoselic formed the American rock band <a href="https://en.wikipedia.org/wiki/Nirvana_(band)" target="_blank" rel="noopener">Nirvana </a>in 1987. The band was known for pioneering the grunge movement of the early 1990s, and their hits like &#8220;Smells Like Teen Spirit&#8221; and &#8220;Come as You Are&#8221; are emblematic of their raw sound and introspective lyrics.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="898" height="500" src="https://different-fonts.com/wp-content/uploads/2023/12/Nirvana-logo-vs-OnyxMTStd-Font-Similarity-Example.webp" alt="Nirvana logo vs OnyxMTStd Font Similarity Example" class="wp-image-2902" srcset="https://different-fonts.com/wp-content/uploads/2023/12/Nirvana-logo-vs-OnyxMTStd-Font-Similarity-Example.webp 898w, https://different-fonts.com/wp-content/uploads/2023/12/Nirvana-logo-vs-OnyxMTStd-Font-Similarity-Example-300x167.webp 300w, https://different-fonts.com/wp-content/uploads/2023/12/Nirvana-logo-vs-OnyxMTStd-Font-Similarity-Example-768x428.webp 768w" sizes="auto, (max-width: 898px) 100vw, 898px" /></figure>



<p></p>



<div class="wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-16018d1d wp-block-buttons-is-layout-flex">
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Download</a></div>
</div>



<p></p>



<p>The Nirvana logo is one of the most recognizable logos in the music industry. The Nirvana logo is OnyxMTStd, a commercial font based on an old English typeface. However, Rojal is a free alternative that can be used instead.</p>



<h2 class="wp-block-heading df-block-heading">Nirvana Font Generator</h2>



<p>If you want to use the font in your designs but don’t have it installed on your computer, you can use our Nirvana font generator. Our font generator is a free and easy-to-use tool that lets you create custom texts with the font. It lets you design unlimited beautiful posters, logos, and banners free of charge.</p>



<div id="fontPreviewContainer"></div>

<!-- JavaScript code -->
<script type="module">
const FONT_BASE_URL = "https://different-fonts.com/wp-content/uploads/Fonts/";

const fontData = [
{ name: "OnyxMTStd", file: "OnyxMTStd.otf" },
{ name: "Rojal", file: "Rojal.ttf" }

]

  const previewContainer = document.getElementById("fontPreviewContainer");

  const fontPreviewControls = document.createElement("div");
  fontPreviewControls.classList.add("fontPreviewControls");

  const livePreviewLabel = document.createElement("label");
  livePreviewLabel.htmlFor = "liveTypeInput";
  livePreviewLabel.innerText = "Type:";
  const liveTypeInput = document.createElement("input");
  liveTypeInput.type = "text";
  liveTypeInput.classList.add("liveTypeInput");
  liveTypeInput.id = "liveTypeInput";
  liveTypeInput.setAttribute(
    "placeholder",
    "Type something here for live preview"
  );
  liveTypeInput.value = "NIRVANA";

  const colorLabel = document.createElement("label");
  colorLabel.htmlFor = "colorInputField";
  colorLabel.innerText = "Color:";
  const colorInputField = document.createElement("input");
  colorInputField.type = "color";
  colorInputField.classList.add("colorInputField");
  colorInputField.id = "colorInputField";

  const backgroundColorLabel = document.createElement("label");
  backgroundColorLabel.htmlFor = "backgroundColorInputField";
  backgroundColorLabel.innerText = "Background:";
  const backgroundColorInputField = document.createElement("input");
  backgroundColorInputField.type = "color";
  backgroundColorInputField.classList.add("backgroundColorInputField");
  backgroundColorInputField.id = "backgroundColorInputField";
  backgroundColorInputField.value = "#ffffff";

  const fontSizeLabel = document.createElement("label");
  fontSizeLabel.htmlFor = "fontSizeSlider";
  fontSizeLabel.innerText = "Size:";
  const fontSizeSlider = document.createElement("input");
  fontSizeSlider.type = "range";
  fontSizeSlider.classList.add("fontSizeSlider");
  fontSizeSlider.id = "fontSizeSlider";
  fontSizeSlider.min = 10;
  fontSizeSlider.max = 120;
  fontSizeSlider.step = 10;
  fontSizeSlider.value = 30;

  const fontPreviews = {};

  function applyLigatures(text) {
    // Helper function to apply ligatures to the font preview text
    if (ligaturesCheckbox.checked) {
      // Add ligature replacements as needed
      text = text.replace(/ff/g, "𝒻𝓃");
      text = text.replace(/fi/g, "𝒻𝒾");
      text = text.replace(/fl/g, "𝒻𝓁");
      // Add more ligatures as needed
    }
    return text;
  }

  function updateFontPreviews() {
    const fontPreviewAreas = document.querySelectorAll(".fontPreview");
    const textColor = colorInputField.value;
    const backgroundColor = backgroundColorInputField.value;
    const fontSize = `${fontSizeSlider.value}px`;
    const liveText = liveTypeInput.value;

    fontPreviewAreas.forEach((fontPreviewArea) => {
      fontPreviewArea.style.color = textColor;
      fontPreviewArea.style.backgroundColor = backgroundColor;
      fontPreviewArea.style.fontSize = fontSize;
      fontPreviewArea.innerText = applyLigatures(liveText);
    });
  }

  colorInputField.addEventListener("input", updateFontPreviews);
  backgroundColorInputField.addEventListener("input", updateFontPreviews);
  fontSizeSlider.addEventListener("input", updateFontPreviews);
  liveTypeInput.addEventListener("input", updateFontPreviews);

  const ligaturesLabel = document.createElement("label");
  ligaturesLabel.htmlFor = "ligaturesCheckbox";
  ligaturesLabel.innerText = "Ligatures:";
  const ligaturesCheckbox = document.createElement("input");
  ligaturesCheckbox.type = "checkbox";
  ligaturesCheckbox.id = "ligaturesCheckbox";
  ligaturesCheckbox.addEventListener("change", updateFontPreviews);

  fontPreviewControls.appendChild(livePreviewLabel);
  fontPreviewControls.appendChild(liveTypeInput);
  fontPreviewControls.appendChild(colorLabel);
  fontPreviewControls.appendChild(colorInputField);
  fontPreviewControls.appendChild(backgroundColorLabel);
  fontPreviewControls.appendChild(backgroundColorInputField);
  fontPreviewControls.appendChild(fontSizeLabel);
  fontPreviewControls.appendChild(fontSizeSlider);
  fontPreviewControls.appendChild(ligaturesLabel);
  fontPreviewControls.appendChild(ligaturesCheckbox);
  previewContainer.appendChild(fontPreviewControls);

  const separator = document.createElement("div");
  separator.classList.add("separator");
  previewContainer.appendChild(separator);

  fontData.forEach(({ name, file }) => {
    const fontName = name;

    const fontContainer = document.createElement("div");
    fontContainer.classList.add("fontContainer");

    const fontTitle = document.createElement("div");
    fontTitle.innerText = fontName;
    fontTitle.classList.add("fontTitle");

    const fontPreviewArea = document.createElement("div");
    fontPreviewArea.setAttribute("aria-labelledby", fontName);
    fontPreviewArea.classList.add("fontPreview");
    fontPreviewArea.classList.add(fontName);
    fontPreviewArea.id = fontName;
    fontPreviewArea.innerText = applyLigatures(liveTypeInput.value);

    const fontFace = new FontFace(fontName, `url(${FONT_BASE_URL}${file})`);
    fontFace.load().then((loadedFontFace) => {
      document.fonts.add(loadedFontFace);
      fontPreviewArea.style.fontFamily = fontName;
    });

    const previewDownloadButton = document.createElement("button");
    previewDownloadButton.innerText = "Download View";
    previewDownloadButton.addEventListener("click", () =>
      downloadFontPreview(fontName)
    );
    previewDownloadButton.classList.add("downloadBtn");
    previewDownloadButton.classList.add("customBtn");

    const downloadButton = document.createElement("button");
    downloadButton.innerText = "Download Font";
    downloadButton.addEventListener("click", () => downloadFont(file));
    downloadButton.classList.add("downloadBtn");
    downloadButton.classList.add("customBtn");

    const previewButtonWrapper = document.createElement("div");
    previewButtonWrapper.classList.add("previewButtonWrapper");
    previewButtonWrapper.appendChild(previewDownloadButton);

    const downloadButtonWrapper = document.createElement("div");
    downloadButtonWrapper.classList.add("downloadButtonWrapper");
    downloadButtonWrapper.appendChild(downloadButton);

    const previewWithDownload = document.createElement("div");
    previewWithDownload.classList.add("previewWithDownload");

    previewWithDownload.appendChild(previewButtonWrapper);
    previewWithDownload.appendChild(downloadButtonWrapper);

    fontContainer.appendChild(fontTitle);
    fontContainer.appendChild(fontPreviewArea);
    fontContainer.appendChild(previewWithDownload);
    previewContainer.appendChild(fontContainer);

    fontPreviews[fontName] = fontPreviewArea;

    fontPreviewArea.setAttribute("contenteditable", true);

    const styles = document.createElement("style");
    styles.innerHTML = `
      @font-face {
        font-family: "${fontName}";
        src: url("${FONT_BASE_URL}${file}") format("opentype");
        font-display: swap;
      }

      .${fontName} {
        font-family: "${fontName}";
      }
    `;
    document.head.appendChild(styles);
  });

  function downloadFont(fontFile) {
    const a = document.createElement("a");
    a.href = `${FONT_BASE_URL}${fontFile}`;
    a.download = fontFile;
    document.body.appendChild(a);
    a.click();
    document.body.removeChild(a);
  }

  function downloadFontPreview(fontName) {
    const fontPreviewArea = fontPreviews[fontName];
    const previewCanvas = document.createElement("canvas");
    const previewCtx = previewCanvas.getContext("2d");
    const fontStyles = window.getComputedStyle(fontPreviewArea);
    const backgroundColor = backgroundColorInputField.value;

    previewCanvas.width = fontPreviewArea.offsetWidth;
    previewCanvas.height = fontPreviewArea.offsetHeight;

    // Set the background color
    previewCtx.fillStyle = backgroundColor;
    previewCtx.fillRect(0, 0, previewCanvas.width, previewCanvas.height);

    // Draw the font preview text
    previewCtx.fillStyle = fontStyles.color;
    previewCtx.font = fontStyles.font;
    previewCtx.textBaseline = "middle";
    previewCtx.textAlign = "center";
    previewCtx.fillText(fontPreviewArea.innerText, previewCanvas.width / 2, previewCanvas.height / 2);

    const previewDataUrl = previewCanvas.toDataURL("image/png");
    const a = document.createElement("a");
    a.href = previewDataUrl;
    a.download = `${fontName}_preview.png`;
    document.body.appendChild(a);
    a.click();
    document.body.removeChild(a);
  }

  updateFontPreviews();
</script>



<p></p>



<p>In short, they used Onyx, a rocking and elegant typeface inspired by the logo of the iconic band Nirvana. You can also try our Nirvana font generator.</p>



<p>If you like this font and looking for more Music fonts then check out&nbsp;<a href="https://different-fonts.com/slipknot-font/">Slipknot</a>, <a href="https://different-fonts.com/eras-tour-font/">Eras Tour</a>,&nbsp;<a href="https://different-fonts.com/bad-bunny-font/">Bad Bunny</a>, and&nbsp;<a href="https://different-fonts.com/metallica-font/">Metallica&nbsp;</a>fonts now.</p>



<p>Thank you for reading!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://different-fonts.com/nirvana-font/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
