Grow your CSS skills. Land your dream job.

Converting font-size measurements from pt to px

  • lel
    # November 14, 2009 at 4:35 pm

    How do I convert font sizes from points into pixels? For example, I received a PSD file with a font-size of 13PT and a line-height of 18PT. What are those values in pixels? I’ve seen the conversion calculators online, but I am not sure I’m A. using them correctly and B. can trust the results. Hopefully someone can offer up a solution and possibly a way for me to finally make sense of this concept.

    Thanks!

    # November 14, 2009 at 8:18 pm

    If your Photoshop-document is 72 dpi,

    then pt == px.

    So

    Code:
    font-size: 13px; line-height 18px;

    would be just fine.

    # November 15, 2009 at 12:58 am

    ooooh, good to know.

    I had one client by me a clear ruler so I could measure my screen with her on the phone and move things around by millimeters… lol

    Thanks,

    lel
    # November 15, 2009 at 6:01 am
    "TeMc" wrote:
    If your Photoshop-document is 72 dpi,

    then pt == px.

    So

    Code:
    font-size: 13px; line-height 18px;

    would be just fine.

    Thanks TeMc! You just made my day!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".