GithubHelp home page GithubHelp logo

atkinsonfont's Introduction

Including Atkinson Hyperlegible Font in Your HTML Website

To include the Atkinson Hyperlegible font in your HTML website, follow these instructions:

Step 1: Define the Font Faces in CSS

First, you need to define the @font-face rule in your CSS file. This rule tells the browser where to find the font files and how to apply them.

@font-face {
    font-family: 'Atkinson Hyperlegible';
    src: url('https://cdn.jsdelivr.net/gh/rysto3/AtkinsonFont@main/font-files/web/WOFF2/Atkinson-Hyperlegible-Regular-102a.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Atkinson Hyperlegible';
    src: url('https://cdn.jsdelivr.net/gh/rysto3/AtkinsonFont@main/font-files/web/WOFF2/Atkinson-Hyperlegible-Italic-102a.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Atkinson Hyperlegible';
    src: url('https://cdn.jsdelivr.net/gh/rysto3/AtkinsonFont@main/font-files/web/WOFF2/Atkinson-Hyperlegible-Bold-102a.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Atkinson Hyperlegible';
    src: url('https://cdn.jsdelivr.net/gh/rysto3/AtkinsonFont@main/font-files/web/WOFF2/Atkinson-Hyperlegible-BoldItalic-102a.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
}

Step 2: Apply the Font to Your Website

After defining the @font-face rules, you can apply the font to your website by specifying the font-family in your CSS selectors.

body {
    font-family: 'Atkinson Hyperlegible', sans-serif;
}

You can also apply the font to specific elements as needed:

h1, h2, h3, h4, h5, h6 {
    font-family: 'Atkinson Hyperlegible', sans-serif;
}

p {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-weight: 400; /* Regular */
}

em {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-style: italic;
    font-weight: 400; /* Italic */
}

strong {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-weight: 700; /* Bold */
}

strong em {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-style: italic;
    font-weight: 700; /* Bold Italic */
}

Step 3: Example HTML

Here's a basic example of how to use the font in your HTML file:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Atkinson Hyperlegible Font Example</title>
    <link rel="stylesheet" href="styles.css"> <!-- Link to your CSS file -->
</head>
<body>
    <h1>This is a Heading</h1>
    <p>This is a paragraph with the Atkinson Hyperlegible font.</p>
    <p><em>This text is italic.</em></p>
    <p><strong>This text is bold.</strong></p>
    <p><strong><em>This text is bold and italic.</em></strong></p>
</body>
</html>

By following these steps, you can include and use the Atkinson Hyperlegible font in your HTML website. Make sure to link your CSS file in your HTML document correctly.

What is this?

The Atkinson Hyperlegible font was created by The Braille Institute to provide greater legibility and readability for low vision readers. The font is named after The Braille Institute's founder, J. Robert Atkinson.

The font focuses on letterform distinction to increase character recognition, ultimately improving readability.

Why do you love this font?

My Mom became legally blind as an adult, and seeing the extra effort she has to go through each day in order to read things has made me interested in improving accessibility.

I wanted to use this font as the primary font on a lot of projects I work on, including my website(s). Rather than self-hosting the font, I wanted to be able to use a service like JSDelivr to make it load as quickly as possible. Hosting it here on GitHub not only allows me to do exactly that, it allows me to further spread the word about this font.

How exactly does this font make it easier for people to read it?

This font has unambiguous, distinctive elements and sometimes unexpected forms with the goal of increasing character recognition. Image demonstrating Atkinson Hyperlegible when blurred to simulate low vision

Image demonstrating Times New Roman when blurred to simulate low vision

You can learn more about the font in the PDF provided by The Braille Institute

atkinsonfont's People

Contributors

rysto3 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.