dhowe / Automatype

Automatype project
0 stars 2 forks source link

can we find a closer font match? #22

Open dhowe opened 7 years ago

dhowe commented 7 years ago

kerning on this one looks quite bad (and no room for cursor):

screen shot 2017-05-22 at 4 42 51 pm

cqx931 commented 7 years ago

Found two similar fonts to 'Courier' JackInput, a bit thicker than 'Courier Regular'. The cursor need to be thinner than the current width if we use this one. image

Cutive Mono, a bit thinner than 'Courier Regular' but some of the kerning might be too wide? image

cqx931 commented 7 years ago

Also, with the same code and same font (courier regular), the cursor offset is not correct when I use loadFont instead of the default textFont.Should be related to this: https://github.com/dhowe/PerceptualReader/issues/5 image

dhowe commented 7 years ago

Interesting -- might be related --can you figure out what is being measured incorrectly (the word or the cursor)?

For this project, lets just use textFont('courier', 150); as is

cqx931 commented 7 years ago

when loading courier from otf/ttf, the width of each letter is not monospace. p5.js won't render mono space font correctly when the font is loaded from file. I have tried a few mono space font file (otf,ttf, copied directly from font folder or downloaded online) but none of them get the same letter width if they are loaded from file. The font file is copy pasted from default mac font folder. Please see: http://chenqianxun.com/testcases/monoSpaceFontTest/

p5 issue https://github.com/processing/p5.js/issues/1957

dhowe commented 7 years ago

is this the same issue as dhowe/PerceptualReader#5 ? also, just because a font is called courier, doesn't mean that it is true monospace (or even that it is not coded badly) -- so pls verify that the font renders correctly in some other program and that it is true monospace