Thread Tools Display Modes
05/31/17, 04:16 PM   #1
patrick_smyth
AddOn Author - Click to view addons
Join Date: Oct 2016
Posts: 9
Changing fonts in chat

I am trying to do the following on the 'System' chat channel (the channel where the output of d() goes):
  1. Save the font and font characteristics (size etc.)
  2. Change font and/or characteristics
  3. Output some text
  4. Repeat the last two steps multiple times
  5. Reset the font and font characteristics to the saved ones
Has anyone done this before?
Does anyone have any coded examples I can learn from?
I searched the forums but I could not find anything useful.
  Reply With Quote
05/31/17, 04:21 PM   #2
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
pChat addon ..
  Reply With Quote
06/04/17, 04:12 PM   #3
patrick_smyth
AddOn Author - Click to view addons
Join Date: Oct 2016
Posts: 9
pchat forces reloadui

The problem I have with using pchat as my model is that it seems to force a reloadui() every time it does a font change.

It uses:
Code:
    ZoFontEditChat:SetFont(fontPath)
    ZoFontChat:SetFont(fontPath)
These calls do not appear to take effect until the next reloadui(). Then they seem to affect the entire window and not just any new text.

For my application to do a reloadui() every time it needed to change font would not be practical. Also it needs the font change to only affect new output text and not existing.

Before I give up does anyone know of a better way?
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Changing fonts in chat

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off