benjamindenboer / FramerInput

Design with Inputs in Framer.
https://framer.com
145 stars 14 forks source link

Text size is rendering incorrectly #12

Open llewellynathan opened 6 years ago

llewellynathan commented 6 years ago

Everything was working fine with the module but all of a sudden the text size starting rending in the preview at about half the size that it should be.

llewellynathan commented 6 years ago

This appears to be related to the device I choose. Text size renders correctly/as expected when previewing on a Macbook Air but renders at half the declared size when I switch to Canvas or Macbook Pro.

llewellynathan commented 6 years ago

When I preview on the web the text size appears at about half the declared size no matter what device I have selected in Framer.

kyleartbow commented 6 years ago

Yes, me too. My field is located in the Side menu bar. Here is a link: https://framer.cloud/pHTNb

bruskowski commented 6 years ago

I had a similar issue (size was twice as big as it should have been when using a custom device) and could resolve it by editing lines 177 and 226 to dpr = 2 # @_checkDevicePixelRatio()

Obviously that's just a hack, fixing the function _checkDevicePixelRatio() would make more sense for sure.