Announcement

Collapse
No announcement yet.

The length of a text string in pixels?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • The length of a text string in pixels?


    I imagine that there is a function either in PB or in Windows to get the length of a text string expressed in pixels when the text has a certain size and a certain font.
    Is there?
    /Fim W.
    Fim Wästberg

  • #2
    GRAPHIC TEXT SIZE txt$ TO WidthVar!, HeightVar! after setting the font with FONT NEW and GRAPHIC SET FONT. There is also GRAPHIC CHR SIZE and GRAPHIC CELL SIZE.
    Rod
    "To every unsung hero in the universe
    To those who roam the skies and those who roam the earth
    To all good men of reason may they never thirst " - from "Heaven Help the Devil" by G. Lightfoot

    Comment


    • #3
      Thanks!!
      That's exactly what I was looking for.

      /Fim W.



      Fim Wästberg

      Comment

      Working...
      X