Autore Topic: Font size contro Paint.Scale  (Letto 427 volte)

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.725
  • Ne mors quidem nos iunget
    • Mostra profilo
Font size contro Paint.Scale
« il: 20 Ottobre 2014, 20:19:28 »
Vi riporto questa discussione:


" Hi,

just browsed the help text for the Paint system, and found this. It
sounds contradictory to me:

BEWARE: The font size, as returned by Paint.Font.Size, is an absolute size.
Its unit is the typographic point.
A typographic point is 1/72 of an inch, i.e. about 0,353 mm.

[Ok up to here, but now:]


BUT: The font size will be modified according to the paint matrix (i.e.
if you use Paint.Scale, Paint.Translate, Paint.Rotate...)

[That doesn't make sense to me]

The tip is to use Paint.Scale to have a coordinate system like mm or cm
for instance. The font size, however, would have to stay reliable in
either case: regardless of if I look at a line as 20 mm or 2 cm, the
letters above this line would have to be the same size.

Only if I used the paint matrix to "enlarge" or "decrease" the whole
page in size (e. g. A5 - A4), I would have to ensure that each element
of the page still fits in size. Don't know if it was meant this way...

Or did I get this completely wrong?

Rolf
"


" If you use paint matrix the letter will change their size
My way in gb.report is to redraw all and just change the arrange computing.

So all thé lines and boxes and texts are maintain their size. Even on b5 or
A3. Well as well the content is reordered and the pagecount recomputed.

Fabien
"
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »