Typography icon indicating copy to clipboard operation
Typography copied to clipboard

Font-Weight simulation

Open prepare opened this issue 7 years ago • 5 comments

https://www.webtype.com/info/articles/fonts-weights/

prepare avatar Aug 04 '18 02:08 prepare

Implementation technique : see

https://github.com/PaintLab/PixelFarm/issues/4#issuecomment-297237649

https://github.com/PaintLab/PixelFarm/issues/4#issuecomment-297321159

prepare avatar Aug 05 '18 12:08 prepare

Early preview ...

font_weight1 pic 1: Palatino Linotype, 14 pts with font weight simulation

prepare avatar Aug 12 '18 12:08 prepare

It is the contour points that are changed by Typography to make the rendered character bolder or thinner. Right?

zwcloud avatar Aug 12 '18 14:08 zwcloud

from pic1 => yes

prepare avatar Aug 12 '18 21:08 prepare

Font-weight simulation implementation is an optional feature. so I put it in 'Typography.Contours' module.

from pic1 (above). => contour points are dilated/ shrinked base on glyph 'core' path (see, https://github.com/PaintLab/PixelFarm/issues/4#issuecomment-297321159).

Another approach (simpler) may be 'scale it' only in X-axis direction. => I will investigate it.

prepare avatar Aug 12 '18 22:08 prepare