0

My text area has a font-size = 14pt but when I try and fetch it using jquery it returns me the data in pixels. Does anybody know how to get the values in points?

Huangism
  • 16,278
  • 7
  • 48
  • 74
  • 3
    possible duplicate of [get jquery to return font-size in points](http://stackoverflow.com/questions/4357863/get-jquery-to-return-font-size-in-points) – Heaven42 Sep 04 '14 at 12:24
  • 1
    .css('font-size') will give you only `px` – Java_User Sep 04 '14 at 12:24
  • 1
    You are saying that `I try and fetch it using jquery it returns me the data in points`.. And again you are asking for the same thing `Does anybody know how to get the values in points?` .. If you are already getting in points then why are you asking this question ?? – Yunus Aslam Sep 04 '14 at 12:45
  • If that `font-size` set in element style attribute/property, you can get it like `node.style.fontSize`. In other case you should get value in px `getComputedStyle( node ).fontSize` then convert it into pt – Novelist Sep 04 '14 at 12:46
  • You can convert Pixels to Points http://stackoverflow.com/questions/139655/convert-pixels-to-points – Adriien M Sep 04 '14 at 12:57

0 Answers0