Post Reply 
Width of each character.
04-12-2022, 05:13 AM
Post: #3
RE: Width of each character.
TEXTOUT_P() returns the X coordinate at which the next character of the string should be drawn if it had more characters (from the Help).

So with a bit of trial and error you could figure it out from that, here's a sample to get started:
Code:
EXPORT ChrWidth()
BEGIN
  LOCAL mychars:={"A","B","C","1","2","3"};
  LOCAL mylist:={}, k;
  FOR k FROM 1 TO SIZE(mychars) DO
    mylist:=CONCAT(mylist,{TEXTOUT_P(mychars(k),0,0)});
  END;
  MSGBOX(mylist);
END;
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Width of each character. - matalog - 04-11-2022, 07:51 PM
RE: Width of each character. - matalog - 04-11-2022, 09:16 PM
RE: Width of each character. - Jacob Wall - 04-12-2022 05:13 AM
RE: Width of each character. - matalog - 04-13-2022, 09:38 PM
RE: Width of each character. - Tyann - 04-14-2022, 04:40 AM
RE: Width of each character. - toml_12953 - 04-14-2022, 04:43 AM



User(s) browsing this thread: 1 Guest(s)