Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<Request> Change font type and size #20

Open
SiderealDay opened this issue Dec 25, 2022 · 1 comment
Open

<Request> Change font type and size #20

SiderealDay opened this issue Dec 25, 2022 · 1 comment

Comments

@SiderealDay
Copy link

SiderealDay commented Dec 25, 2022

Hi,
As per the title, can we have an option to change font type and size plz.
In the mean time, how can I do that in the lua? Not sure of the exact syntax :)

@raysmith59
Copy link

raysmith59 commented Mar 24, 2024

+1; I'm also putting in a separate request to change the location, I like bottom left personally.

In case you see this, add a line in the label-related block from lines 220 to 225 in ItemLevel.lua:

label:SetFont(label:GetFont(),15,"")

That will keep the same font, change the size to 15 and keep the font with its normal look. Change the 15 as desired to adjust the size.

To change the actual font you'd have to replace the "label:GetFont()" part with a path to a font file, not sure if we're allowed to provide external links here but if this doesn't work look up API_FontInstance_SetFont on Wowpedia for more info, the example they provide is "Fonts\FRIZQT__.TTF" (quotes are required):
https://wowpedia.fandom.com/wiki/API_FontInstance_SetFont

Also, try changing the "" to "OUTLINE, THICK", seems to add a shadow and bolds it a bit, something like that might help as well, I've made that change myself. The third option available is MONOCHROME, you can use one or multiple separated by commas. That's documented at the link above as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants