Text Antialiasing Differences

Developer
Size
2,725 Kb
Views
44,528

How do I make an text antialiasing differences?

What is a text antialiasing differences? How do you make a text antialiasing differences? This script and codes were developed by Andy Merskin on 10 August 2022, Wednesday.

Text Antialiasing Differences Previews

Text Antialiasing Differences - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Text Antialiasing Differences</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Open+Sans:400,700'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>System Fonts - San Francisco, Segoe UI, Roboto, etc.</h1>
<h2>Regular and Bold weights</h2>
<div class="box text-default">400 - Subpixel Antialiasing
</div>
<div class="box text-default weight-700">700 - Subpixel Antialiasing
</div>
<div class="description">Looks too bold for Regular, doesn't it? Due to the way browsers blend colors using subpixel antialiasing, the smoothing itself adds weight to the type. This creates crisper text on <strong>non-Retina</strong> displays, though weights may look inaccurate.
<div><pre>/* Browsers use by default */
-webkit-font-smoothing: subpixel-antialiased;
-moz-osx-font-smoothing: auto;</pre></div>
</div>
<div class="box text-antialiased">400 - Grayscale Antialiased</div>
<div class="box text-antialiased weight-700">700 - Grayscale Antialiased</div>
<div class="description"><em>Much better.</em> This will look just like the type in your designs with the same weights.
<div><pre>-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;</pre></div>
</div>
<h2>Faux bolding</h2>
<div class="box opensans">400 - Regular</div>
<div class="box weight-700 opensans">700 - Faux Bold</div>
</body>
</html>

Text Antialiasing Differences - Script Codes CSS Codes

body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; color: #333;
}
h1, h2 { margin: 20px 0; padding: 0 100px;
}
h1 { font-size: 36px;
}
h2 { font-size: 24px;
}
.box { background-color: #1A237E; color: #fff; padding: 20px 100px 10px;
}
.box + .box { padding: 10px 100px 20px;
}
.description { padding: 10px 100px 20px; background-color: #fff; color: #333;
}
.text-antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.weight-700 { font-weight: 700;
}
.opensans { font-family: 'Open Sans';
}
pre { color: #303F9F;
}
Text Antialiasing Differences - Script Codes
Text Antialiasing Differences - Script Codes
Home Page Home
Developer Andy Merskin
Username andymerskin
Uploaded August 10, 2022
Rating 3
Size 2,725 Kb
Views 44,528
Do you need developer help for Text Antialiasing Differences?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Andy Merskin (andymerskin) Script Codes
Create amazing SEO content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!