Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

font metrics / lenght of text

 [1/2] from: koopmans::itr::ing::nl at: 14-Jun-2001 11:16

Hi, How do I determine the lenght of a text in a face? I can't find any font metric stuff. I need to scale a face to match the lenght of a string I supply, and then place a fitted image in the background. --Maarten

 [2/2] from: cyphre:volny:cz at: 14-Jun-2001 11:38

Hello again ;-) here is the answer:
>> ? size-text
USAGE: SIZE-TEXT face DESCRIPTION: Returns the size of the text in a face. SIZE-TEXT is a native value. ARGUMENTS: face -- (Type: object)