dahtah / imager

R package for image processing
GNU Lesser General Public License v3.0
187 stars 43 forks source link

fsize in draw_text #94

Closed sorrynoclue42 closed 5 years ago

sorrynoclue42 commented 5 years ago

Hi, I'm having trouble with the font size in draw_text: no matter what value I put enter for fsize = , there is no change in the size of the font on the image. I'm running R version 3.5.3 and imager version 0.41.2 on Windows (64 bit). Any comments?

ShotaOchi commented 5 years ago

I confirmed that fsize didn't work. The reason is obvious. fsize is not passed to drawtext function in draw_text function. We should eliminate the "=1" and "=20" in Line 136. See the code shown below. https://github.com/dahtah/imager/blob/7a71590cf88d34a3f5b2df22165a3a83e8b4a84b/R/drawing.R#L129-L137