aboutsummaryrefslogtreecommitdiff
path: root/docs/index.xml
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-03-17 16:53:49 +0000
committerAkshay <[email protected]>2020-03-17 16:53:49 +0000
commit214e6cb76772989324be55c3ffa2d39dfa296295 (patch)
tree42648e31ff2dde5199c63eccda46966cbd077667 /docs/index.xml
parent9227a05c650c12fb45d8cf6497165d2641335438 (diff)
new post: Font Size Fallacies
Diffstat (limited to 'docs/index.xml')
-rw-r--r--docs/index.xml99
1 files changed, 99 insertions, 0 deletions
diff --git a/docs/index.xml b/docs/index.xml
index 25a63ca..57b7984 100644
--- a/docs/index.xml
+++ b/docs/index.xml
@@ -12,6 +12,105 @@
12 <language>en-us</language> 12 <language>en-us</language>
13 <copyright>Creative Commons BY-NC-SA 4.0</copyright> 13 <copyright>Creative Commons BY-NC-SA 4.0</copyright>
14 <item> 14 <item>
15<title>Font Size Fallacies</title>
16<description><p>I am not an expert with fonts, but I do have some
17experience <sup id="fnref1"><a href="#fn1" rel="footnote">1</a></sup>, and common sense. This post aims to debunk some
18misconceptions about font sizes!</p>
19
20<p>11 px on your display is <em>probably not</em> 11 px on my display.
21Let&#39;s do some quick math. I have two displays, 1366x768 @
2221&#8221; and another with 1920x1080 @ 13&#8221;, call them <code>A</code> and
23<code>B</code> for now.</p>
24
25<p>Display <code>A</code> has 1,049,088 pixels. A pixel is a square, of
26side say, <code>s</code> cm. The total area covered by my 21&#8221; display
27is about 1,066 cm<sup>2</sup> (41x26). Thus,</p>
28
29<pre><code>Display A
30Dimensions: 1366x768 @ 21&#34; (41x26 sq. cm)
311,049,088 s^2 = 1066
32 s = 0.0318 cm (side of a pixel on Display A)
33</code></pre>
34
35<p>Bear with me, as I repeat the number crunching for Display
36<code>B</code>:</p>
37
38<pre><code>Display B
39Dimensions: 1920x1080 @ 13&#34; (29.5x16.5 sq. cm)
402,073,600 s^2 = 486.75
41 s = 0.0153 cm (side of a pixel on Display B)
42</code></pre>
43
44<p>The width of a pixel on Display <code>A</code> is <em>double</em> the width of a
45pixel on Display <code>B</code>. The area occupied by a pixel on Display
46<code>A</code> is <em>4 times</em> the area occupied by a pixel on Display <code>B</code>.</p>
47
48<p><em>The size of a pixel varies from display to display!</em></p>
49
50<p>A 5x11 bitmap font on Display <code>A</code> would be around 4 mm tall
51whereas the same bitmap font on Display <code>B</code> would be around
521.9 mm tall. A 11 px tall character on <code>B</code> is visually
53equivalent to a 5 px character on <code>A</code>. When you view a
54screenshot of Display <code>A</code> on Display <code>B</code>, the contents are
55shrunk down by a factor of 2!</p>
56
57<p>So screen resolution is not enough, how else do we measure
58size? Pixel Density! Keen readers will realize that the 5<sup>th</sup>
59grade math problem we solved up there showcases pixel
60density, or, pixels per cm (PPCM). Usually we deal with
61pixels per inch (PPI).</p>
62
63<p><strong>Note:</strong> PPI is not to be confused with DPI <sup id="fnref2"><a href="#fn2" rel="footnote">2</a></sup> (dots
64per inch). DPI is defined for printers.</p>
65
66<p>In our example, <code>A</code> is a 75 ppi display and <code>B</code> is around
67165 ppi <sup id="fnref3"><a href="#fn3" rel="footnote">3</a></sup>. A low ppi display appears to be
68&#8216;pixelated&#8217;, because the pixels are more prominent, much
69like Display <code>A</code>. A higher ppi usually means you can view
70larger images and render crispier fonts. The average desktop
71display can stuff 100-200 pixels per inch. Smart phones
72usually fall into the 400-600 ppi (XXXHDPI) category. The
73human eye fails to differentiate detail past 300 ppi.</p>
74
75<p><em>So &#8230; streaming an 8K video on a 60&#8221; TV provides the same
76clarity as a HD video on a smart phone?</em></p>
77
78<p>Absolutely. Well, clarity is subjective, but the amount of
79detail you can discern on mobile displays has always been
80limited. Salty consumers of the Xperia 1 <sup id="fnref4"><a href="#fn4" rel="footnote">4</a></sup> will say
81otherwise.</p>
82
83<p>Maybe I will talk about font rendering in another post, but
84thats all for now. Don&#39;t judge a font size by its
85screenshot.</p>
86
87<div class="footnotes">
88<hr/>
89<ol>
90
91<li id="fn1">
92<p><a href="https://github.com/nerdypepper/scientifica">https:&#47;&#47;github.com&#47;nerdypepper&#47;scientifica</a>&#160;<a href="#fnref1" rev="footnote">&#8617;</a></p>
93</li>
94
95<li id="fn2">
96<p><a href="https://en.wikipedia.org/wiki/Dots_per_inch">https:&#47;&#47;en.wikipedia.org&#47;wiki&#47;Dots_per_inch</a>&#160;<a href="#fnref2" rev="footnote">&#8617;</a></p>
97</li>
98
99<li id="fn3">
100<p><a href="https://www.sven.de/dpi/">https:&#47;&#47;www.sven.de&#47;dpi&#47;</a>&#160;<a href="#fnref3" rev="footnote">&#8617;</a></p>
101</li>
102
103<li id="fn4">
104<p><a href="https://en.wikipedia.org/wiki/Sony_Xperia_1">https:&#47;&#47;en.wikipedia.org&#47;wiki&#47;Sony_Xperia_1</a>&#160;<a href="#fnref4" rev="footnote">&#8617;</a></p>
105</li>
106
107</ol>
108</div></description>
109<link>https://peppe.rs/posts/font_size_fallacies/</link>
110<pubDate>Tue, 17 Mar 2020 16:52:00 +0000</pubDate>
111<guid>https://peppe.rs/posts/font_size_fallacies/</guid>
112</item>
113<item>
15<title>Termux Tandem</title> 114<title>Termux Tandem</title>
16<description><p>I learnt about <code>termux</code> from a friend on IRC recently. 115<description><p>I learnt about <code>termux</code> from a friend on IRC recently.
17It looked super gimmicky to me at first, but it eventually 116It looked super gimmicky to me at first, but it eventually