Skip to content

Commit

Permalink
Disabled line spacing for WoWLua for the moment
Browse files Browse the repository at this point in the history
  • Loading branch information
tflo committed Jul 31, 2024
1 parent 2eee421 commit 72d9ab6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 18 deletions.
2 changes: 1 addition & 1 deletion EditBox-Font-Improver.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 110002, 110000
## Title: EditBox Font Improver
## Version: 1.2.0
## Version: 1.2.1
## IconTexture: Interface\AddOns\EditBox-Font-Improver\icon.blp
## Notes: Lets you set your custom font, font size and style for the edit boxes of: Blizz's macro frame, OPie, M6, and WoWLua.
## Author: Mot (@6mot, @tflo)
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ To see all commits, including alpha-version changes, go [here](https://github.co

### Releases

#### 1.2.1 (2024-07-31)

- I had to revert the line spacing setting for the WoWLua editbox, since this messes up the cursor position. Will be re-implemented when/if I find a solution.

#### 1.2.0 (2024-07-27)

- The "experimental" addition of BugSack (see 1.2.0-beta-1 notes) works fine, so this is a permanent feature now.
Expand Down
18 changes: 5 additions & 13 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@ local size = 12
-- So, if you prefer the original font in WoWLua, just set the following variable to `false`:
local include_wowlua = true

-- EXTRA: Interline spacing for the WoWLua edit box:
-- WoWLua uses a line spacing of 0 (zero), which too tight for an editor that
-- displays many lines. This setting increases the line spacing. Recommended: At
-- least 1, better something in the range of 2 to 4. To use WoWLua's default
-- spacing, set the value to `nil` (without any quotes) or remove/comment the
-- line.
-- Note: This setting is independent of the above `include_wowlua`.
local spacing_wowlua = 3

-- [ End of User Config ] -----------------------------------------------------


Expand Down Expand Up @@ -103,10 +94,11 @@ local function setup_wowlua()
WowLua:UpdateFontSize(WowLua_DB.fontSize)
end

local spacing = tonumber(spacing_wowlua)
if spacing then
WowLuaMonoFontSpaced:SetSpacing(spacing)
end
-- Disabled for the moment, since this messes up the cursor position
-- local spacing = tonumber(spacing_wowlua)
-- if spacing then
-- WowLuaMonoFontSpaced:SetSpacing(spacing)
-- end
end


Expand Down
4 changes: 0 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ You can also set the font size and other things in `main.lua`. _You find more in

By default, the addon changes the font only of the addons I am using or was using (see above). If you have another addon with an unsuitable font in the edit box, you can try to add the frame to the list. Find more instructions in `main.lua`.

### Extras

If you are using WoWLua, you will be pleased that the EBFI increases the interline spacing in the WoWLua edit box (optional).

---

Feel free to post suggestions or issues in the [GitHub Issues](https://github.com/tflo/EditBox-Font-Improver/issues) of the repo!
Expand Down

0 comments on commit 72d9ab6

Please sign in to comment.