openFrameworks icon indicating copy to clipboard operation
openFrameworks copied to clipboard

bug with making contours from fonts

Open ofZach opened this issue 4 years ago • 1 comments

one of my students was experimenting with this font and this code

https://www.dropbox.com/s/p02qyulbud26fqb/lato.ttf?dl=0 https://github.com/ofZach/RTP_SFPC_SUMMER20/tree/master/typeExample3

and found that the parsing looks a little weird, some screenshots when you zoom in

Screen Shot 2020-06-07 at 7 04 09 AM Screen Shot 2020-06-07 at 7 04 01 AM

it seems that when you change the makeContoursForCharacter and make all the 64 to 64.0 instead it fixes things, so perhaps it's just a resolution issue?

Screen Shot 2020-06-07 at 7 04 43 AM Screen Shot 2020-06-07 at 7 04 37 AM

happy to submit a PR just wanted to mention it as an issue in case anyone has ideas.

ofZach avatar Jun 07 '20 11:06 ofZach

I think this is related to the fact assumes as a default parameter for simplifyAmt the value of 0.3 so maybe every loaded font is simplified?

dimitre avatar Sep 03 '22 16:09 dimitre

I've checked out the code and confirm simplifyAmt = 0.0 fixes this This PR closes this issue https://github.com/openframeworks/openFrameworks/pull/7065

Screen Shot 2022-09-27 at 21 05 26

dimitre avatar Sep 28 '22 00:09 dimitre

closed by #7065

ofTheo avatar Sep 28 '22 16:09 ofTheo