Legible Mail
by VincentSDSH
(email vincent at silver daggers dot net)

Legible Mail is a wrapper for 4 lines of code that let you change to reading/writing mail font.

It's best used while reading or sending mail, type /lm and adjust till you're happy. Settings are currently global so you only need to do it once.

NB: Font selections depending on the mods you have installed that also use libSharedMedia.



I finally got fed up looking at the annoying-to-read MailTextFontNormal (yeah, it took me from Vanilla-beta till now) and decided to change it but couldn't find any active mods that did it and I saw the question asked over and over but the available answers were 'use a mod that isn't available anymore' or 'replace the font files' which is a global change. Eh, no.

If you don't mind using a font defined in FrameXLM\Fonts.xml, you can do as below, 2 lines and done. 
	OpenMailBodyText:SetFontObject(SystemFont_Med3)     -- READING
	SendMailBodyEditBox:SetFontObject(SystemFont_Med3)	-- WRITING
	
If you want to supply your own font then you can do as below.
	local fontObject = CreateFont("MailFont_Replacer")
	local isOK = fontObject:SetFont("Fonts\\FRIZQT__.TTF", 18, "")
	OpenMailBodyText:SetFontObject(fontObject)		-- READING
	SendMailBodyEditBox:SetFontObject(fontObject)	-- WRITING

If you are daft enough, you can also write a mod.

If you, as I do, have a custom UI, you can use the 4 lines above and save yourself some load-time. Use Legible Mail to find your font/size then insert insert the info.


Version Notes:
	v.1.1: Updated for Legion's expanded font sizes (64 is the highest that OpenMailBodyBody seems to respond to)
	v1.0.0a: Teeny code tweaks
	v1.0.0: initial release