Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1483
Change font at runtime
posted

Hi,

I would like to control the font used by all of the controls in our application.  Using a style file I have been able to set the base style role's fontName, this seems to work ok.  I would rather not hard code the font name in the file and instead determine it at runtime and set this value accordingly.  I could modify the style file prior to loading it if I have to but I was hoping for a better way.  Should I muck with the StyleManager api to do this?  I have found any examples of this.

 Thanks for your help,

Bill

 

Parents
  • 469350
    Offline posted

    Hi Bill,

    I think what you would have to load is load your StyleLibrary into memory and then modify the base UI Role in code. 

    But how you would do this depends on whether you want to load a library from a file first, or just create a new library. And do you want to save the changed setting to a file or just do all of this in code? 

Reply Children