Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 29 JUL 2003 06:29:12AM Oystein Reigem wrote:

I think there might be a difference in the value received from "CALCTEXT" in OIPI16 and OIPI32. (With "CALCTEXT" one can find the width and height of some text in the current font.) It seems OIPI16 includes the spacing in its value for height while OIPI32 does not. (One can set the spacing in the "FONT" message.)

Here's an excerpt of some code of mine to illustrate what I'm doing:

TFont=Courier New,10,L,0"

Spacing=125

Stat=Set_Printer( "FONT", TFont, Spacing )

Stat=Set_Printer( "CALCTEXT", "Some text" )

Size=Get_Printer( "CALCTEXT" )

TextHeight=Size

In OIPI16 I get different values for TextHeight when I vary Spacing (e.g, try 125 and 100). In OIPI32 I get the same value.

Disclaimer: I haven't done all the relevant experiments now. Some of my conclusions are from indirect evidence.

- Oystein -


At 31 JUL 2003 09:23AM Gerald Lovel wrote:

Every now and then I run across a piece of code which says,

* If using version 2.11 then…

(code goes here)

* else using version 2.12 ….

(alternative code here)

How long ago was AREV 2.11, anyway?

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/3005535226d4c62685256d7200399af1.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1