08-27-2023, 11:16 PM
Quote:Could you possibly show me an example where we are using the absolute position value for the 2nd (x, y) and then how step would fix it?
From our very recent code rewrite for FONT.print
Code: (Select All)
Sub F0NT.print (s$, f() As F0NT, x%, y%, scale%, spacing%)
Dim As Integer i, l, dx1, dy1, dx2, dy2, orig_x
Dim c As String
Dim g As Long
l% = Len(s$)
' PSet (x%, y%)
For i% = 1 To l%
c$ = Mid$(s$, i%, 1)
'g& =
'_Source g&
dx1% = x% + (i% - 1) * (COLS + spacing%) * scale%
dy1% = y%
'dx2% = (COLS * scale%) + dx1% ' << STEP allows us to leave off the dx1% from which we STEP
'dy2% = (ROWS * scale%) + dy1% ' << STEP allows us to leave off the dx2% from which we STEP
'_PutImage (dx1%, dy1%)-(dx2%, dy2%), F0NT.get_glyph(c$, f())
_PutImage (dx1%, dy1%)-Step(COLS * scale% - 1, ROWS * scale% - 1), F0NT.get_glyph(c$, f())
Next i%
End Sub
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever

