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

Create a concise shorthand representation for margins when styling with jss using Material-UI's theme object

When styling the component, I found a way to apply the margin in a specific manner. style.js const styles = theme => ({ button: { margin: '12px 18px', } }) However, I wanted to utilize material-ui's theme.spacing.unit f ...

Having difficulty transforming both scale and box-shadow at the same time

Is there a way to animate the circle's box-shadow while also scaling it down from 1.6x to 1 during the same transition period? I'm having trouble with the timing of the scale animation, as it seems to occur after the box-shadow animation is fini ...

The marriage of a sticky and floating navigation bar using the power of Bootstrap 4

I am currently designing a navigation bar inspired by the layout on the EA GAMES website. While it functions perfectly in Chrome, I am encountering significant display issues in Internet Explorer. Any suggestions on how to troubleshoot and resolve this pro ...

Issue with resizing keyboard/dropdown popup in Android hybrid app when navigating offscreen

Here is the offscreen navigation menu I have set up. When I open a keyboard or dropdown, the offscreen menu changes and exhibits a small gap on the left side after the popup (highlighted in red). It seems like the menu is shifting further away from the ed ...

Alignment of content layout across two wrapper elements

My goal is to achieve a specific layout where each pair of cards in a two-column layout is aligned based on the card with the largest content. Both cards share the same content layout and CSS. If you have any ideas or implementations that could help me ac ...

How to ensure Angular mat-button-toggle elements are perfectly aligned within their respective groups

https://i.stack.imgur.com/Wjtn5.png Hello there, I'm trying to make the numbers in the first group match the style of the second group (noche, mañana...). I've set both the group and individual element width to 100%, but the numbers beyond 22 ...

What is the best method for rounding a decimal number to two decimal places?

Here is the JavaScript code I am using: $("input[name='AuthorizedAmount'], input[name='LessLaborToDate']").change(function () { var sum = parseFloat($("input[name='AuthorizedAmount']").val()).toFixed( ...

Personalize Autocomplete CSS based on the TextField input in React Material UI when a value is present

In my current project, I am utilizing React Material Autocomplete fields, which includes a nested TextField. I have successfully implemented standard styles for when the field is empty and only the label is visible, as well as different styles for hover ef ...

What is causing the native HTML5 date picker on Chrome for Android to suddenly slow down significantly?

Recently, I have encountered a frustrating issue with the date picker on my website. It used to work perfectly until a recent update on Chrome Android introduced a new date picker that is slow and unresponsive. Loading it takes several seconds, making it d ...

Get rid of the strange border on the material dialog

I am struggling with the Angular material 6 dialog component as it is displaying a strange border. I have attempted to remove it using the code below, without success. Interestingly, when I apply the style inline in the browser, it works fine. Any suggesti ...

Having Trouble with Form Submission Button Across Different Web Browsers

Having some trouble with my form - all fields are properly closed with tags, but when I click the submit button, nothing happens. The page is loaded with code, so here's the link for you to check it out. Unfortunately, right-click is disabled, so ple ...

Tips on how to align a wrapper-div in the center without affecting the positioning of the

I am looking to keep my page perfectly centered in the browser without affecting the content (similar to how align-text: center works). Specifically, I want to center my wrapper-div. How can I achieve this? Here is a simplified version of my current page ...

What is causing the qtip tooltip to show up on buttons with different ids?

I have a requirement to display tooltips only for specific buttons and not for others. I am facing an issue where the tooltip intended for the TAB button is showing up when hovering over other buttons like FOO and BAR as well. Could this be due to them sha ...

using javascript to target a specific css selector attribute

I have a CSS file with the following code: .datagrid table tbody td { color: #00496B; border-left: 1px solid #E1EEF4; font-size: 16px ;font-weight: normal; } Is there a way to use JavaScript to dynamically change the font size? The code below worked ...

Is it possible to implement formvalidation.io in a React project that is using Materialize-css?

Can the formvalidation.io plugin be used with React and Materialize-css in a project? My project consists of multiple input components that may or may not be within a form. I want to utilize formvalidation for input validation. However, I am unable to find ...

Retrieve JSON data from Form Submission

While I am not a front end developer, I have been trying my hand at it recently. I hope that the community here can assist me with an issue I am facing. I have a form that is supposed to send files to a server-side API like shown below: <form id="uploa ...

How to Choose Between Landscape and Portrait Printing Modes in Firefox and Internet Explorer 8

Currently, I am using the latest version of FireFox and IE8. In order to change the printing orientation, I utilized the following code in my CSS file: @page { size: portrait; } You can find more information about the @page property here. Although it i ...

What is the best way to ensure that my drop-down menu items match the size of the parent nav bar?

I'm having trouble creating a dropdown menu using only CSS. Specifically, I am struggling to ensure that the dropdown menu is the same size (width and height) as its parent element. Here is a link to a working example: HERE This is the snippet of HT ...

Tips for executing a function on a specific class selector using the document.getElementsByClassName method

When I click on a specific class, I want to implement a fade-out function in JavaScript. However, I am struggling to make a particular class fade out successfully. I attempted to use the this keyword, but it seems like I might be using it incorrectly bec ...

A set of four responsive divs arranged vertically

Confession time... I'm facing a challenge with this task... I'm attempting to create a responsive page with 4 stacked divs. Here are the guidelines for each div: The header div: The text should be at the bottom, serving as a slogan placed clo ...