pixel font in HTML/CSS

26,622

Solution 1

This might do what you want to some extent:

font-smooth: never;
-webkit-font-smoothing : none;

Solution 2

I know I'm late, but Small Font lets you use this gladly.

Here's some working CSS with no links required:

body {font-family: "MS Pゴシック";}
<!--- Here's some HTML for the example --->
<h4>Small Font</h4>
<p>Small Font is a pixel font used by Windows when a font is too small to be displayed</p>
<h5>Recommended CSS:</h5>
<code>font-size: 75%;</code>

Solution 3

I'm not really sure what you're asking. But if you're looking to disable anti-aliasing, you might be able to use -webkit-font-smoothing: none;.

Share:
26,622

Related videos on Youtube

benoît
Author by

benoît

Updated on July 29, 2022

Comments

Related