Skip to content

Commit 8886e98

Browse files
authored
Release Interactive ReaScript (iReaScript) v0.8.5 (#1690)
Fix monospaced font selection on macOS ARM
1 parent 66d5600 commit 8886e98

1 file changed

Lines changed: 5 additions & 14 deletions

File tree

Development/cfillion_Interactive ReaScript.lua

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
-- @description Interactive ReaScript (iReaScript)
22
-- @author cfillion
3-
-- @version 0.8.4
4-
-- @changelog
5-
-- Fix autocompletion after an opening parenthesis
6-
-- Fix display glitch when pasting tab characters
3+
-- @version 0.8.5
4+
-- @changelog Fix monospaced font selection on macOS ARM
75
-- @link
86
-- cfillion.ca https://cfillion.ca
97
-- Forum Thread https://forum.cockos.com/showthread.php?t=177324
@@ -1637,14 +1635,6 @@ function ireascript.selectAll()
16371635
ireascript.redraw = true
16381636
end
16391637

1640-
function ireascript.iswindows()
1641-
return reaper.GetOS():find('Win') ~= nil
1642-
end
1643-
1644-
function ireascript.ismacos()
1645-
return reaper.GetOS():find('OSX') ~= nil
1646-
end
1647-
16481638
function ireascript.dup(table)
16491639
local copy = {}
16501640
for k,v in pairs(table) do copy[k] = v end
@@ -1775,10 +1765,11 @@ function ireascript.initgfx()
17751765
gfx.setcursor(ireascript.IDC_IBEAM)
17761766
gfx.clear = -1
17771767

1778-
if ireascript.iswindows() then
1768+
local os = reaper.GetOS()
1769+
if os:find('Win') then
17791770
gfx.setfont(ireascript.FONT_NORMAL, 'Consolas', 16)
17801771
gfx.setfont(ireascript.FONT_BOLD, 'Consolas', 16, string.byte('b'))
1781-
elseif ireascript.ismacos() then
1772+
elseif os:find('OSX') ~= nil or os:find('macOS') then
17821773
gfx.setfont(ireascript.FONT_NORMAL, 'Menlo', 14)
17831774
gfx.setfont(ireascript.FONT_BOLD, 'Menlo', 14, string.byte('b'))
17841775
else

0 commit comments

Comments
 (0)