05-28-2014 09:50 AM
When using a web browser (on a system with only the LabVIEW RTE installed) to monitor a remote front panel controlled from a cRIO is there a way to control which fonts are used by the browser when it displays the panel? In the case of a stand-alone executable I know you can include font definitions for "appfont" and "FPfont" within the INI file associated with the executable to control the fonts used by the executable. Is there anything similar that can be done with a front panel running in a browser window? Or must I go through the VI and explicitly define a specific non-generic font for each and every control and indicator that is displayed?
Solved! Go to Solution.
05-29-2014 04:55 PM
Hi WNM,
Something like this would have to be either configured in the VI on the development computer (as you mentioned at the end of your post) or in the browser font settings. Configuring this in the browser would change the font on the Remote Front Panel, but would likely change all the control fonts to the same, different font, as well as change the font of any other pages open in your browser. Otherwise, changing it programmatically in the VI is how you would control the fonts.
05-30-2014 02:53 PM
Thank you for your answer Bob. For the most part I had gone through and had changed all my front panel controls and indicators to an explict font type and size (I need to make a VI using scripting to automate this) but I tried your suggestion of making the change in the browser (Firefox in this case because it's easy to find the font type/size setting under Menu -> Tools -> options -> content) and while changing the browser font did impact some of the text displayed by the GUI, it did not fix it in the one spot I was trying to target at this point.
A front-panel time/date control has a browse button associated with it that brings up a window with a calender and a digital clock. I am causing this to happen from a front panel displayed in a browser window. In the case of one laptop with only the 2013RTE installed, the font used to render the calender (a multicolum list box) is too large for the control so it doen't really fit and I have not been able to figure out how to change the font to something that does fit. Evidently the vi behind this time/date browse window is the picktime.vi located in the \resource\dialog\ LV subdirectory but since a picktime VI does not show up as any part of my project I suspect the version of it that appears when the browse button on the laptop is pushed actually comes from the 2013RTE that's installed and I cannot access/update the fonts embedded in that copy.
FWIW, I'm surprized and please in this operational senario that the time/date browser's "Set Time to Now" button actually has a sense of when "now" is from the laptop's clock rather than the cRIO's because a cRIO-9075 always defaults to 16:00 on 12/31/1969 after a reboot.
06-02-2014 05:34 PM
Hi WNM,
Have you tried to use a property node to resize the font as needed to fit the control?
Regards,
06-02-2014 05:56 PM
The control under discussion is supplied (I think) by the LV2013 RTE and as such is not accessible through my project. It does not show up in the project when I either look for or search for its name.
06-03-2014 10:08 AM
Hi WNM,
Would you mind posting screenshots of your initial Front Panel and then the second one that pops up when you press the browse button? Also, is that second window that pops up a subVI? Or something configured in the browser with HTML?
06-03-2014 11:19 AM
Please look at the screen shots and captions contained in the attached PDF.
06-03-2014 03:46 PM
What is the windows font size on the PC? Is it set for 125% ?
Your issue sounds like the one discussed in this thread. Set Date and Time - 5 Week Month Doesn't Show Last Line
06-03-2014 04:31 PM - edited 06-03-2014 04:32 PM
Yep, you are right. On the laptop where this was occurring the display property (under Control Panel -> Display) was set to Medium or 125%. I changed it to Smaller/100%, logged out/in of Windows, reconnected to the cRIO, readjusted FireFox's zoom (at the new Windows setting, the top-level front panel no longer fit the bezel provided in FF) and then pulled up the set-time window and its fonts now fit the table.
Based on what I saw in the other thread, it does not look like NI has a good fix for this so I'll settle on just going with the smaller display setting.
Thanks!