Skip to content

Commit 22272d6

Browse files
committed
chore(docs): remove trailing whitespaces
Separating this out into its own PR as I discovered these while making another contribution. Signed-off-by: JP-Ellis <[email protected]>
1 parent a2ac2b3 commit 22272d6

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The static fonts have one file per cut, per family. The variable axes have named
2525

2626
## Texture Healing
2727

28-
Monaspace pioneered the technique of "texture healing" for monospaced fonts:
28+
Monaspace pioneered the technique of "texture healing" for monospaced fonts:
2929

3030
![Texture Healing Example](<docs/images/ReadmeTextureHealing.png>)
3131

@@ -62,7 +62,7 @@ There are ten groups of coding ligatures, separated into stylistic sets. You may
6262
* `ss01`: ligatures related to the equals glyph like `!=` and `===`.
6363
* `ss02`: ligatures for greater/less or equal (`<=`, `>=`).
6464
* `ss03`: ligatures related to arrows like `->` and `~>`.
65-
* `ss04`: ligatures related to markup, like `</` and `/>`.
65+
* `ss04`: ligatures related to markup, like `</` and `/>`.
6666
* `ss05`: ligatures related to the F# programming language, like `|>`.
6767
* `ss06`: ligatures related to repeated uses of `#`, `+`, and `&`.
6868
* `ss07`: ligatures related to colons like `::` or `=:=`.
@@ -117,7 +117,7 @@ Font caching on operating systems is an inscrutable mess dating back thirty year
117117
- First delete the old fonts…
118118
- Then install the new fonts…
119119
- Then restart applications that use the fonts…
120-
- … and maybe restart your entire computer.
120+
- … and maybe restart your entire computer.
121121

122122
Restarting is usually the only way to be 100% sure that the underlying machinery in the operating system picks up the new fonts.
123123

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Thanks for helping make GitHub safe for everyone.
44

55
GitHub takes the security of our software products and services seriously, including all of the open source code repositories managed through our GitHub organizations, such as [GitHub](https://github.com/GitHub).
66

7-
Even though [open source repositories are outside of the scope of our bug bounty program](https://bounty.github.com/index.html#scope) and therefore not eligible for bounty rewards, we will ensure that your finding gets passed along to the appropriate maintainers for remediation.
7+
Even though [open source repositories are outside of the scope of our bug bounty program](https://bounty.github.com/index.html#scope) and therefore not eligible for bounty rewards, we will ensure that your finding gets passed along to the appropriate maintainers for remediation.
88

99
## Reporting Security Issues
1010

SUPPORT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Support
1+
# Support
22

33
## How to file issues and get help
44

docs/Texture Healing.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Monospace fonts involve glyphs which inherently have compromise in their design,
1414

1515
*fig. 2*
1616

17-
I’ve come to think of the ‘m’ example as belonging to a category called ‘**glyphs that need space**’ (fig. 3). If more space was available, these glyphs would love to take up more space. Somehow anthropomorphizing the glyphs a bit helps to understand the ideas here.
17+
I’ve come to think of the ‘m’ example as belonging to a category called ‘**glyphs that need space**’ (fig. 3). If more space was available, these glyphs would love to take up more space. Somehow anthropomorphizing the glyphs a bit helps to understand the ideas here.
1818

1919
![LM-GH-TextureHealing-Documentation-03.png](images/LM-GH-TextureHealing-Documentation-03.png)
2020

@@ -32,21 +32,21 @@ These categories of drawing in a monospace mean that a word like ‘swimming’
3232

3333
# Intro to Glyph Variations
3434

35-
One of the inherent problems with monospace fonts is, funnily enough, something we take for granted in most typeface design: the idea that there is just one version of every glyph. Disregarding script fonts, for instance, this is true of most fonts. If there is an ‘a’, there is just one unchanging ‘a’ that works in every situation.
35+
One of the inherent problems with monospace fonts is, funnily enough, something we take for granted in most typeface design: the idea that there is just one version of every glyph. Disregarding script fonts, for instance, this is true of most fonts. If there is an ‘a’, there is just one unchanging ‘a’ that works in every situation.
3636

3737
![LM-GH-TextureHealing-Documentation-05b.gif](images/LM-GH-TextureHealing-Documentation-05b.gif)
3838

3939
*fig. 6*
4040

41-
What if this were not true? Texture Healing relies on the idea that if there is, for instance a default ‘i’, it is also joined by some alternates (fig. 6). Rather than changing the aesthetic styling of the glyph, the glyph construction, or other qualities that typically call for an alternate, Texture Healing relies on alternates that shift to the left and right, without changing the glyph bounds. In other words, the body size of the alternate versions never changes, only the width and positioning of the drawing within the glyph body.
41+
What if this were not true? Texture Healing relies on the idea that if there is, for instance a default ‘i’, it is also joined by some alternates (fig. 6). Rather than changing the aesthetic styling of the glyph, the glyph construction, or other qualities that typically call for an alternate, Texture Healing relies on alternates that shift to the left and right, without changing the glyph bounds. In other words, the body size of the alternate versions never changes, only the width and positioning of the drawing within the glyph body.
4242

4343
![6-A.gif](images/6-A.gif)
4444

4545
# The Approach
4646

4747
At a high level, the steps of Texture Healing are:
4848

49-
1. Equip the font with variations for letters that are otherwise compromised, in which the compromise is lessened.
49+
1. Equip the font with variations for letters that are otherwise compromised, in which the compromise is lessened.
5050
2. Equip the font with an awareness of what a Texture Conflict is.
5151
3. Tell the font to swap in alternate glyphs, itself, in the event that they may alleviate a Texture Conflict.
5252

@@ -60,7 +60,7 @@ The letter ‘i’ is in the ‘glyphs that can give space’ category. A Textur
6060
- i.left (narrower drawing, and purposefully sitting to the *left* of the glyph’s body)
6161
- i.right (narrower drawing, and purposefully sitting to the *right* of the glyph’s body)
6262

63-
The default version is designed to function just as any monospace would, getting along with every other default glyph in a random order. The alternates, however, are designed to work in very specific contexts, and aren’t suitable to be used in place of defaults.
63+
The default version is designed to function just as any monospace would, getting along with every other default glyph in a random order. The alternates, however, are designed to work in very specific contexts, and aren’t suitable to be used in place of defaults.
6464

6565
![7-A.gif](images/7-A.gif)
6666

@@ -91,11 +91,11 @@ can be replaced with: f, i, l.left, m.left, i, n, g
9191

9292
![LM-GH-TextureHealing-Documentation-09.png](images/LM-GH-TextureHealing-Documentation-09.png)
9393

94-
Because the alternate glyphs never take up any more space, on a line of text, than their default siblings, the word length does not change at all, and the monospacing is preserved. However the ‘l’ looks more natural, and the ‘m’ looks less cramped, and the word has become more pleasant to read, as a result.
94+
Because the alternate glyphs never take up any more space, on a line of text, than their default siblings, the word length does not change at all, and the monospacing is preserved. However the ‘l’ looks more natural, and the ‘m’ looks less cramped, and the word has become more pleasant to read, as a result.
9595

9696
---
9797

98-
Similar logic could be used for the word ‘winning’.
98+
Similar logic could be used for the word ‘winning’.
9999

100100
This sequence of glyphs: w, i, n, n, i, n, g
101101

@@ -117,7 +117,7 @@ The feature code will be readily available, and thoroughly commented, in the .gl
117117

118118
Semantic names have been chosen for the OpenType classes, which reference the categorical concepts we’ve established, for instance you will see definitions for the following classes:
119119

120-
`@defaults_can_give_space`: If a glyph belongs to the ‘glyphs that can give space’ category, and alternates have been drawn for it, the default version should be in this class. For instance ‘i’ belongs here, as the default version of ‘i’.
120+
`@defaults_can_give_space`: If a glyph belongs to the ‘glyphs that can give space’ category, and alternates have been drawn for it, the default version should be in this class. For instance ‘i’ belongs here, as the default version of ‘i’.
121121

122122
`@can_give_space_left`: This contains the .left variations of every glyph added to the `@defaults_can_give_space` class.
123123

@@ -129,7 +129,7 @@ A note on OpenType classes: these are sequential containers. The order of elemen
129129

130130
---
131131

132-
`@defaults_can_take_space`: If a glyph belongs to the ‘glyphs that need space’ category, and alternates have been drawn for it, the default version should be in this class. For instance ‘m’ belongs here, as the default version of ‘m’.
132+
`@defaults_can_take_space`: If a glyph belongs to the ‘glyphs that need space’ category, and alternates have been drawn for it, the default version should be in this class. For instance ‘m’ belongs here, as the default version of ‘m’.
133133

134134
`@can_take_space_left:` This contains the .left variations of every glyph added to the `@defaults_can_take_space` class.
135135

@@ -167,19 +167,19 @@ Let’s follow the process to add a new texture healed glyph. The first thing th
167167

168168
*fig. 12*
169169

170-
Next, you need to sort this glyph into one of our two categories: Is it a ‘glyph that needs space’ or a ‘glyph that can give space’ (fig. 12)?
170+
Next, you need to sort this glyph into one of our two categories: Is it a ‘glyph that needs space’ or a ‘glyph that can give space’ (fig. 12)?
171171

172172
Let’s pretend that we’ve just added the letter ‘m’ to our typeface, and we want to make sure it is texture healed (fig. 13). For the sake of this tutorial we are citing the ‘m’ as an example, but in its place you should imagine any glyph which belongs to the ‘glyphs that need space’ category.
173173

174-
We’re going to assume that you’ve already drawn your default version of the ‘m’, which means: the version that can work with every other glyph in the character set, where its width accounts for spacing relationships to arbitrary preceding/following characters.
174+
We’re going to assume that you’ve already drawn your default version of the ‘m’, which means: the version that can work with every other glyph in the character set, where its width accounts for spacing relationships to arbitrary preceding/following characters.
175175

176-
The next step would be to design the ‘.left’ and ‘.right’ versions. For ‘m.left’, the drawing should become wider than the default drawing, but the spacing on the right side should remain identical. In this sense, the ‘m.left’ glyph gets wider, leftwards.
176+
The next step would be to design the ‘.left’ and ‘.right’ versions. For ‘m.left’, the drawing should become wider than the default drawing, but the spacing on the right side should remain identical. In this sense, the ‘m.left’ glyph gets wider, leftwards.
177177

178178
![LM-GH-TextureHealing-Documentation-12b.png](images/LM-GH-TextureHealing-Documentation-12b.png)
179179

180180
*fig. 13*
181181

182-
The ‘m.right’ variation does the same thing, but this time the left side bearing remains identical, the wider drawing now extends to the right. Still without moving the overall width of the ‘glyph body’ at all.
182+
The ‘m.right’ variation does the same thing, but this time the left side bearing remains identical, the wider drawing now extends to the right. Still without moving the overall width of the ‘glyph body’ at all.
183183

184184
Next you will need an ‘m.both’ variation which is the widest of all the variations, and it extends in both directions. The spacing is no longer the same on either side, and we have a sort of ‘maximum footprint’ version of the glyph via this version.
185185

@@ -198,15 +198,15 @@ And there you have it! You have a texture healed glyph which will get wider when
198198

199199
If you sorted your glyph into the other category ,‘glyphs that need space’, you will need to follow extremely similar steps, with some small differences. Let’s say that you were adding ‘i’, and therefore it falls into this other category (fig. 15).
200200

201-
When creating the .left and .right versions of your glyph, instead of making the drawings wider, the drawings will be narrower. When creating the .left variation, this time the left side bearing will remain the same, and the drawing will ‘scoot over’ to the left, as it gets narrower.
201+
When creating the .left and .right versions of your glyph, instead of making the drawings wider, the drawings will be narrower. When creating the .left variation, this time the left side bearing will remain the same, and the drawing will ‘scoot over’ to the left, as it gets narrower.
202202

203203
![LM-GH-TextureHealing-Documentation-14b.png](images/LM-GH-TextureHealing-Documentation-14b.png)
204204

205205
*fig. 15*
206206

207-
The .right version follows the same logic, this time getting narrower rightwards. The bounding box of the glyph, its overall width or ‘body size’ remains the same.
207+
The .right version follows the same logic, this time getting narrower rightwards. The bounding box of the glyph, its overall width or ‘body size’ remains the same.
208208

209-
There is no .both variation for glyphs in this category, so that can be omitted.
209+
There is no .both variation for glyphs in this category, so that can be omitted.
210210

211211
And the class sorting steps would be:
212212

0 commit comments

Comments
 (0)