09-15-2023, 02:37 PM
|
#1 |
|
Human being with feelings
Join Date: May 2017
Location: Somewhere over the Rainbow
Posts: 6,966
|
When setting gfx.y too low, the text that shall be shown by gfx.drawstr disappears.
In the following code, the text isn't shown at all: Code:
gfx.setfont(1, "Arial", 18, 0)
function main()
gfx.x=1
gfx.y=-18
gfx.drawstr("BreadFan\nTudelu\nOhMyGod\n123\nOhNoMoreTests")
reaper.defer(main)
end
main()
I try to code a scrolling engine, where text might be scrolled out to the top, but this bug prevents me from doing it. Edit: gfx.x is also affected. Textlines not visible in the window get cut off. That means, if the first line isn't visible, the second line becomes the first line now, if visible. Code:
gfx.setfont(1, "Arial", 18, 0)
function main()
gfx.x=1
gfx.y=1
gfx.drawstr("1\n22\n333\n4444")
reaper.defer(main)
end
main()
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - ReaGirl - a GuiLib for guis working for blind people Last edited by Meo-Ada Mespotine; 10-02-2023 at 11:51 AM. |
|
|
10-02-2023, 12:03 PM
|
#2 |
|
Human being with feelings
Join Date: May 2017
Location: Somewhere over the Rainbow
Posts: 6,966
|
It only happens, when using a different font than the standard system font.
Like Arial or Time New Roman.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - ReaGirl - a GuiLib for guis working for blind people |
|
|
10-03-2023, 07:12 PM
|
#3 |
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,783
|
ah yes, thanks, fixing!
|
|
|
10-04-2023, 09:06 AM
|
#4 |
|
Human being with feelings
Join Date: May 2017
Location: Somewhere over the Rainbow
Posts: 6,966
|
Thank you
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - ReaGirl - a GuiLib for guis working for blind people |
|
|
![]() |
| Thread Tools | |
|
|