April 16, 20242 yr Hi, Just started with your gauge editor. I'm trying to create some basic text based readouts to monitor numerical data, but my font size is doing something funny. Within the editor, my gauge looks like this: But when outputted to WebFIPS it looks like this: Yes they're ugly 😄 but just focussing on functionality first Any ideas why the font might be changing? Edited April 16, 20242 yr by C414AC
April 16, 20242 yr Commercial Member 11 minutes ago, C414AC said: Any ideas why the font might be changing? No idea, sorry. In general, Desktop and Web FIPs will be similar but not identical. LORBY-SI
April 19, 20242 yr Author I think I know the issue but not specifically how to solve it. If anyone has web design experience, it would be handy. I *think* it is to do with .css files, which for webpages specify the styling of the page, including fonts. If anyone wishes to wade in, it would be great 🙂
April 20, 20242 yr Commercial Member 8 hours ago, C414AC said: I think I know the issue but not specifically how to solve it. If anyone has web design experience, it would be handy. I *think* it is to do with .css files, which for webpages specify the styling of the page, including fonts. If anyone wishes to wade in, it would be great 🙂 WebFIPs don't utilize CSS. It would help if you would post the actual code of that gauge, so I can try it on my end. Normally the fonts look the same in Desktop and WebFIPs, I haven't seen the effect that you describe before. Or send the gauge to me by email, the address is on the last page of the AAO manual. Please don't forget to send your proof of purchase too. Edited April 20, 20242 yr by Lorby_SI LORBY-SI
April 28, 20242 yr Author Hi there, Sorry brief aviation hiatus. Here is code from one of the gauges: Â <?xml version="1.0" encoding="utf-8"?> <Gauge xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="CF_Pressurisation"> Â <Visible>(A:PLANE ALT ABOVE GROUND) 50 ></Visible> Â <Image Name="background.png" ImageSizes="200,200,200,200" /> Â <Element> Â Â <Position X="100" Y="26" /> Â Â <GaugeText> Â Â Â <FontHeight>22</FontHeight> Â Â Â <FontColor>#000000</FontColor> Â Â Â <Bold>false</Bold> Â Â Â <Italic>false</Italic> Â Â Â <HorizontalAlign>center</HorizontalAlign> Â Â Â <Value>Cabin Alt</Value> Â Â </GaugeText> Â </Element> Â <Element> Â Â <Position X="100" Y="58" /> Â Â <GaugeText> Â Â Â <FontHeight>44</FontHeight> Â Â Â <FontColor>#000000</FontColor> Â Â Â <Bold>false</Bold> Â Â Â <Italic>false</Italic> Â Â Â <HorizontalAlign>center</HorizontalAlign> Â Â Â <Value>%(A:PRESSURIZATION CABIN ALTITUDE, FT)%!4d!ft</Value> Â Â </GaugeText> Â </Element> Â <Element> Â Â <Position X="100" Y="126" /> Â Â <GaugeText> Â Â Â <FontHeight>22</FontHeight> Â Â Â <FontColor>#000000</FontColor> Â Â Â <Bold>false</Bold> Â Â Â <Italic>false</Italic> Â Â Â <HorizontalAlign>center</HorizontalAlign> Â Â Â <Value>Rate</Value> Â Â </GaugeText> Â </Element> Â <Element> Â Â <Position X="100" Y="158" /> Â Â <GaugeText> Â Â Â <FontHeight>44</FontHeight> Â Â Â <FontColor>#000000</FontColor> Â Â Â <Bold>false</Bold> Â Â Â <Italic>false</Italic> Â Â Â <HorizontalAlign>center</HorizontalAlign> Â Â Â <Value>%(A:PRESSURIZATION CABIN ALTITUDE RATE, FEET PER SECOND) 60 *%!3d!fpm</Value> Â Â </GaugeText> Â </Element> Â <Element> Â Â <Position X="0" Y="100" /> Â Â <Image Name="line.png" ImageSizes="200,6,200,6" /> Â </Element> </Gauge>
April 28, 20242 yr Commercial Member 2 hours ago, C414AC said: Here is code from one of the gauges: OK, so here is what's happening: You didn't supply a "<FontFace>" tag in the text elements. In a DesktopFIP that is no big deal, because the app window that is displaying the gauge just defaults to a local font (Arial? TimesNewRoman?). This is a default mechanism in Windows, it does that on its' own. But a web page can't do that. When the <FontFace> is empty or missing, then the whole font string (which contains the size!) in the HTML element is invalid - and it defaults to "10px sans-serif". There is not a lot that I can do, I suggest that you simply add a font of your choice to the element. (If I were to supply a default font when you leave it empty, then Web and Desktop will look different, which is also not desireable.) Edited April 28, 20242 yr by Lorby_SI LORBY-SI
Archived
This topic is now archived and is closed to further replies.