The unique font I have set up is not displaying correctly on Safari or iOS devices, however, it is functioning properly on Chrome and Firefox when using

This is my first time seeking help on stackoverflow. I have been struggling to understand why the font on my website doesn't display correctly in Safari or any browser on IOS devices, even though it appears fine on Chrome, Firefox, and other browsers.

I have diligently followed all recommended steps for adding fonts to a Next.js 14 application as outlined in the documentation. It seems like the issue may be with Apple's webkit engine or possibly how Next.js handles the rendering of these font files? It must be one of those explanations.

I have confirmed that the font is compatible with webfont formats like WOFF, and I have even experimented with using @font-face instead of relying on Next.js's specific next/font method. Interestingly, I have used this same font successfully in a previous project that was a simple static HTML/CSS setup. This leads me to believe that the problem might be related to how Next.js manages the rendering of these font files.

If anyone with more experience or who has encountered a similar issue could offer some guidance, I would greatly appreciate it.

UPDATE:

After further testing, it appears that the problem lies within the way Next.js handles font loading and optimization, particularly affecting Safari compatibility. By manually overriding the font in CSS rather than utilizing the recommended next/local/font approach suggested in the Next.js documentation, I was able to resolve the issue and achieve the desired font display.

If anyone else has insights or experiences related to this issue, please feel free to share your thoughts for the benefit of others.

Answer №1

Dealing with a related problem: localFont isn't displaying custom fonts on canvas in Safari. Still searching for a fix

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Setting up User Agent (UA) and Headless mode for Selenium on SafariIs there a

Desired Solution for Selenium Safari Setup I am seeking a way to configure the User Agent and Headless settings for Selenium when using Safari, similar to ChromeOptions. My specific requirement for Safari is due to needing access to a website that is only ...

Is it possible to automate Chrome browser using Selenium without using chromedriver?

I've been attempting to automate a website but have encountered issues with detecting chromedriver. Despite trying various methods such as changing the cdc_ part of the chromedriver and using a different user agent, it still identifies the presence of ...

Styling the entire spreadsheet in Excel using Python

Can the font of all cells in an xlsx file be formatted using Python without the need to iterate through each cell individually? If so, which specific module can achieve this task? ...

Switch the type and version of the browser using Selenium

In an attempt to change my user agent using the Selenium Webdriver, I have utilized the following code. However, it has come to my attention that Google Analytics is able to easily detect my browser and its version (specifically Firefox 54.0 in this case). ...

Python script using Selenium WebDriver to simulate a click action

On a webpage, I have a button defined as: <div class="form-group mt-3 mb-1 d-grid"> <button type="submit" class="btn btn-lg btn-primary"> Login </button> </div> In my Python code, I ...

What is the method for executing a key press event in Safari?

selenium 3.0.2 safari 10 (using built in safari driver) python 2.7.10 OSX 10.11.16(El Capitan) How can I repeat key press events (Right/Left/Up/Down) multiple times using send_keys(Keys.Right) to move focus with repetitive key press actions? For ex ...

Guide to integrating MPA frontend with SSR backend using Next.js?

I recently purchased an MUI template for my project. Utilizing React with Next.js and Flask as the backend, the MUI template functions as a Multiple-Page Application. In the past, I have utilized Flask for a Single Page Application by simply using return s ...

Django does not support CORS headers

As I work on building an API in Django and utilizing Next.js for the frontend, I consistently encounter an issue when trying to communicate between the backend and frontend. The console displays the following message: Access to XMLHttpRequest at 'http ...

A python script designed to retrieve URLs from a webpage

Trying to download an entire playlist for Android development tutorials from YouTube can be quite a task. The use of savefrom.net helped in generating the playlist for download, but facing the issue of handling numerous videos in the playlist. To simplify ...