I suggest strwidth() [Off Topic]

posted by Helmut Homepage – Vienna, Austria, 2022-04-25 09:26 (21 d 10:59 ago) – Posting: # 22940
Views: 204

Hi ElMaestro,

» I have a dynamic text s. I am going to put it on a plot. But I need to know if s at a given set of parameters and setting fits onto the plot within a width of dx units on the horizontal axis as one line.

I see. You create the plot first and then strwidth(s) and strheight(s) will give you what you need.

Dif-tor heh smusma 🖖 [image]
Helmut Schütz

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes

Complete thread:

UA Flag
 Admin contact
22,074 posts in 4,629 threads, 1,565 registered users;
online 14 (0 registered, 14 guests [including 13 identified bots]).
Forum time: Monday 20:26 CEST (Europe/Vienna)

Rules are for the guidance of wise men
and the blind obedience of fools.    attributed to Solon

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz