I am facing an issue where the text on my website is failing to display properly

I am facing an issue where the text on my website renders normally on Android or Windows, but when I run it on iOS, the text disappears completely. It's as if all the text has been set to display: none; The other elements seem to be tucking in just fine.

not working on iOS

working on Android

Below is the HTML code:

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link id="normalStylesheet" rel="stylesheet" href="style.css">
    <link href="https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ddbcb2ae9deff3eef3ec">[email protected]</a>/dist/aos.css" rel="stylesheet">
    <title>Tungstun Design and ICT</title>
    <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@700&display=swap" rel="stylesheet"> 
    <script src="https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7b1a14083b495548554a">[email protected]</a>/dist/aos.js" type="text/javascript"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js" type="text/javascript"></script>

</head>
<body>
    <div class="main_section">
        <div class="header"
        data-aos="header-scroll"
        data-aos-offset="100"
        data-aos-duration="300"
        data-aos-once="false"
        data-aos-anchorPlacement="top-bottom"
        data-aos-anchor=".work_content"
        data-aos-easing="ease-in-out">
            <ul id="header">
                <li id="homeButton" class="headerItem"><a>Home</a></li>
                <li id="workButton" class="headerItem"><a>Work</a></li>
                <li id="contactButton" class="headerItem"><a>Contact</a></li>
            </ul>
            <img class="header_logo" src="images/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f09c9f979fb0c288de809e97">[email protected]</a>">
        </div>
        
        <div id="homeSection" class="logo_container">
            <img class="logo" src="images/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a0cccfc7cfe092d88ed0cec7">[email protected]</a>"> 
        </div>
    
        <div class="buttons_container">
            <button id="workMainButton" class="button primary_button">Work</button>
            <button id="contactMainButton" class="button secondary_button">Contact</button>
        </div>
        
        <div class="image_div">
            <img src="images/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e280858d94838e91a2d09acc928c85">[email protected]</a>" id="bgOvals">
        </div>
        <div class="circle_div"
        data-aos="tagline-scroll"
        data-aos-offset="100"
        data-aos-duration="300"
        data-aos-once="false"
        data-aos-anchorPlacement="top-bottom"
        data-aos-anchor=".work_content"
        data-aos-easing="ease-in-out">
            <img src="images/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d2b0b5b1bba0b1beb792e0aafca2bcb5">[email protected]</a>" id="bgCircle">
            <h1 id="tagLine">A small IT and design company based in Utrecht</h1>
        </div>
        
        <div class="bottom_stroke"><hr><hr><hr></div>
    </div>
    <div id="workSection" class="work_content">
        <h1 class="title">My work</h1>
        <ul id="workList" class="work_list">

            <li>
                <div class="work_li_div">
                    <img src="images/amblogo.png" class="work_image">
                    <div class="work_name_div">Alles met boeken</div>
                </div>
            </li>

            <li>
                <div class="work_li_div">
                    <img src="images/Herfst.png" class="work_image">
                    <div class="work_name_div">VanGister</div>
                </div>
            </li>

            <li>
                <div class="work_li_div">
                    <img src="images/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c2aeada5adefb6b0a3acb1b2a3b0a7acb682f0baecb2aca5">[email protected]</a>" class="work_image">
                    <div class="work_name_div">Heimstel</div>
                </div>
            </li>

            
        </ul>
        <div class="bottom_stroke"><hr><hr><hr></div>
    </div>

    

    <div id="contactSection" class="contact_content">
        <h1 class="title">Contact me</h1>
        <h2>Let's make something great together!</h2>
        <div class="form_div">
            <form>
                <label for="formName">Your name</label><br>
                <input id="formName" type="text"><br>
                <label for="formEmail">Your e-mail</label><br>
                <input id="formEmail" type="email"><br>
                <label for="formType">What can I do for you?</label><br>
                <select id="formType"></select><br>
                <form action="formMessage">Anything to add?</form>
                <textarea id="formMessage" type="text"></textarea><br>
                <button id="formConfirmButton" type="button">Shoot!</button>
            </form>
        </div>

        <div class="bottom_stroke"><hr><hr><hr></div>
    </div>
    
    <script src="work.js" type="text/javascript"></script>

    <script>
        AOS.init();
    </script>
</body>
</html>

Here is the CSS used:

@font-face {
    font-family: gotham_medium;
    src: url(font/GothamMedium.svg);
    src: url(font/GothamMedium.ttf);
}

@font-face {
    font-family: gotham_book;
    src: url(font/GothamBook.svg);
    src: url(font/GothamBook.ttf);
}

html, body {
    background-color: var(--tungstun-background);
    margin: 0px;
    font-family: 'gotham_medium', 'Open Sans', sans-serif;;
    text-rendering: optimizeLegibility;
}

Answer №1

Although your code is accurate, the .ttf file seems to be corrupted. It appears that Chrome is more lenient compared to Safari, however, there are still noticeable abnormalities with the font in Chrome as well (just compare the display between your chosen font and the default browser font).

To resolve this issue, try loading the font from a reputable source. If you used an online service to optimize the font, consider using a different one. The website itself is functioning properly, as demonstrated by swapping out the font for testing purposes.

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

Optimizing Window Width with React.js and CSS

I'm currently in the process of building a responsive website with react. I am utilizing CSS stylesheets for styling and have used @media queries to ensure responsiveness. However, I've encountered an issue while testing in Chrome where the elem ...

Issues with jQuery UI Sortable and Bootstrap 3 fluid grid causing flickering and disruptions

I have a basic grid layout consisting of 3 columns in each row, all based on Bootstrap 3. To make it fluid, I decided to omit the 'container' class. My goal is to enable sorting functionality using jQuery UI sortable for the columns within each r ...

What could be causing the issue of CSS animation not functioning properly when used in conjunction with a

I am working on creating a switch button with CSS and JavaScript that needs an animation when toggling or clicked. The only issue I am facing is related to the animation. I am wondering if there might be any problem with the positioning (relative, absol ...

Looping through an array of objects in VueJS can become a bit tricky when dealing with objects whose properties are dynamic. How can I efficiently

I am looking to create a matrix display from an array of objects, but the properties of the objects may change over time. Here is an example of the data: [ { location: "Japan", webhookStatus: "Up", authenticationStatus: &q ...

Discover the procedure to alter date formats in MongoDB

I recently created a MongoDB collection using Node.js with the following code: var mongoose = require('mongoose'); var TTTUsersSchema = new mongoose.Schema({ username: String, password:String, active: Boolean, created_at: { type: Dat ...

Dash that serves as a barrier between two words to avoid them from breaking onto

Is there a way to keep a dash ( - ) from breaking a word when it is at the end of a line? Similar to how &nbsp; prevents a line break between two words. The issue I am facing currently is with a dynamic blog post that includes the word X-Ray. Unfortun ...

How to display HTML on top without altering the viewport in React?

I am trying to display a component <Top /> above another component <Bottom /> in React. The code structure is as follows: ... [top, setTop] = useState(false); [bottom, setBottom] = useState(true); ... return ( <div> top && (< ...

Should I incorporate PHP/HTML code or opt for using a function instead?

I'm currently exploring the most effective method for integrating HTML/PHP code into various pages, such as headers, footers, and other repetitive sections. Would it be better to use include_once(php file) (even if it's used multiple times on a ...

Ways to tidy HTML/XML code?

Upon receiving a web service response, the data appears as such: <text>&lt;span class="TitleServiceChange" &gt;Service Change&lt;/span&gt; &lt;span class="DateStyle"&gt; &amp;nbsp;Poste ...

Show User-Uploaded Image on Redirected Webpage with Flask and html

My goal is to develop a webpage where users can submit an image, and upon submission, they are redirected to a new page displaying the rendered image. I have referenced the code from How to pass uploaded image to template.html in Flask for guidance, but un ...

The PHP counter conceals the comma upon loading and does not display it permanently

I'm currently working on a PHP counter and encountering an issue with the comma display. I have implemented Number Format in a PHP function to print counter digits with commas every 3 digits, but the comma doesn't remain visible after the page lo ...

What could be the reason for my MVC 5 ASP.Net application functioning perfectly on my local machine but encountering issues when deployed to Azure

Looking for some help with my first question here. I've recently completed a small ASP.Net project focused on racing drivers and teams, which works well locally but encounters issues when deployed to Azure. The first problem I've encountered is ...

Steps for modifying the documents on an osCmax website

I had a developer set up my website in osCmax a while ago, and now I want to update the design of some pages using HTML and CSS on my own. While I am comfortable with HTML and CSS, I have very limited knowledge of PHP. This is my first attempt at working o ...

Invoke the session on a different page and incorporate it into your JavaScript code

My php files, ajax.php and index.php, contain a mix of php code, html, and javascript. I am developing a quiz website where questions are retrieved from a database using sql in ajax.php and displayed on index.php through an ajax method. The user's sco ...

Attempting to implement a feature that will enable a blank row at the end of an input table with the help of

I'm currently working on a form that allows users to click a button to add a blank row to the bottom of a table. The issue I'm facing is that when I click the button, it redirects back to my index.php page instead of simply adding the row to the ...

``There seems to be a problem with the radio buttons where the selection disappears when

I'm facing an issue with a radio button group I created. It's functioning properly, but the selection disappears when clicked outside of the radio button. Can someone assist me in resolving this problem? Here is the link to the jsfiddle for refer ...

Is it possible to add a border to both the tbody and td

I currently have a table that is organized with tbody elements to group rows together. In order to create a grid-like structure, I applied borders to each individual td element within the tbody. However, I also desire to show that the tbodies themselves ar ...

The enigma of HTML forms never ceases to baffle

Currently, I am enrolled in a Vue.js course and have recently delved into the topic of forms and their management. The concept posed about how the < select > tag operates has left me puzzled. Is it correct to assume that its value corresponds to the ...

Align the prices of products in a uniform position within each table cell

Apologies for the lengthy explanation. I am working with osCommerce and have a page that displays all our product specials in a 3 column table layout. My challenge is to align the price of each product so that they are aligned perfectly across the screen. ...

Altering the character by striking a key

I have a canvas with custom styling. In the center of the canvas is a single letter. Please see the code below for reference. The goal is to change the displayed letter by pressing a key on the keyboard. For instance: Letter A is centered in the canvas: P ...