Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Huge font in SVG Traffic Graph on Linux/Firefox.

    webGUI
    8
    15
    8.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mxxcon
      last edited by

      in Firefox 2 on linux, svg traffic graph fonts look extra large…see attached screenshot
      krdc1.png
      krdc1.png_thumb

      [Sig removed by Administrator: Signature can not exceed 20GB]

      1 Reply Last reply Reply Quote 0
      • P
        pk
        last edited by

        @mxxcon:

        in Firefox 2 on linux, svg traffic graph fonts look extra large…see attached screenshot

        Yeah, it seems that it only works in Windows or with Adobe's SVG plugin.  m0n0wall does the same thing.  It was fixed at one point, but then it reverted back to it's normal broken version.  I read somewhere that it was because they are not specifying the font size or something.  Anyway, I wish they would fix it because it's broken on the Mac too.

        1 Reply Last reply Reply Quote 0
        • S
          sullrich
          last edited by

          @pk:

          @mxxcon:

          in Firefox 2 on linux, svg traffic graph fonts look extra large…see attached screenshot

          Yeah, it seems that it only works in Windows or with Adobe's SVG plugin.  m0n0wall does the same thing.  It was fixed at one point, but then it reverted back to it's normal broken version.  I read somewhere that it was because they are not specifying the font size or something.  Anyway, I wish they would fix it because it's broken on the Mac too.

          If its broken on m0n0wall as well then please report it.  Manuel knows the SVG author and can most likely get it fixed.  I for one, don't know squat about SVG so I wouldn't even know where to begin diagnosing this.

          1 Reply Last reply Reply Quote 0
          • D
            DanielSHaischt
            last edited by

            It's not broken on the Mac. Just tested with FF 2.0. I bet you did manipulate the default font size of your browser. So it's not broken in general but rather only if the user is increasing/decreasing the browser's default font size.

            If specifying the font size in the SVG source to fix the issue, I would appreciate such a change.

            Cheers
            Daniel S. Haischt

            Mit freundlichen Gruessen / With kind regards
            DAn.I.El S. Haischt

            1 Reply Last reply Reply Quote 0
            • S
              simoncpu
              last edited by

              Yepp, the font also looks large on my FreeBSD workstation.  It looks fine in Windows though.  Changing the internal width/height of the SVG from 200x100 to 550x275 fixes the problem (well, almost… I still need to align them) on FreeBSD, but it looks very small in Windows.  Perhaps we need to detect if the user is using xorg/X11 and change the SVG size accordingly? :)

              [ simon.cpu ]

              1 Reply Last reply Reply Quote 0
              • M
                mxxcon
                last edited by

                @DanielSHaischt:

                I bet you did manipulate the default font size of your browser. So it's not broken in general but rather only if the user is increasing/decreasing the browser's default font size.

                hmm..i don't remember if i changed default sizes
                i have
                default font "Bitstream Vera Sans" size 16.
                proportional font "Sans Serif" size 16.
                monospace font "monospace" size 12.
                minimum font size 11.

                [Sig removed by Administrator: Signature can not exceed 20GB]

                1 Reply Last reply Reply Quote 0
                • ?
                  Guest
                  last edited by

                  Same here on plain Win XP, Firefox 2.0.0.1. Those fonts are rather big, but it's not THAT big issue. I personally prefer the ones on the rrd graphs page, though.

                  1 Reply Last reply Reply Quote 0
                  • S
                    simoncpu
                    last edited by

                    @ojay2001:

                    Same here on plain Win XP, Firefox 2.0.0.1. Those fonts are rather big, but it's not THAT big issue. I personally prefer the ones on the rrd graphs page, though.

                    Does it look like mxxcon's screenshot? =)

                    [ simon.cpu ]

                    1 Reply Last reply Reply Quote 0
                    • ?
                      Guest
                      last edited by

                      LOL! Yes, it does. only different scaling as i'm luckyly on a 1GB Backbone :), but font sizes and stuff are the same.

                      1 Reply Last reply Reply Quote 0
                      • P
                        pk
                        last edited by

                        @sullrich:

                        If its broken on m0n0wall as well then please report it.  Manuel knows the SVG author and can most likely get it fixed.  I for one, don't know squat about SVG so I wouldn't even know where to begin diagnosing this.

                        It's been reported many times.  Manuel knows about it.

                        1 Reply Last reply Reply Quote 0
                        • D
                          DanielSHaischt
                          last edited by

                          @simoncpu:

                          Perhaps we need to detect if the user is using xorg/X11 and change the SVG size accordingly? :)

                          I am pretty much against browser/os specific code. We did that already back in 1995, where we coded per browser and per operating system HTML and JavaScript and its definitely not the way to go because of the huge overhead.

                          Cheers
                          Daniel S. Haischt

                          Mit freundlichen Gruessen / With kind regards
                          DAn.I.El S. Haischt

                          1 Reply Last reply Reply Quote 0
                          • H
                            hoba
                            last edited by

                            Not only code overhead. It would make testing/developement a lot more complicated too as you need to have lot's of testsystems to ensure compatibility with all the systems/browsers/os'es.

                            1 Reply Last reply Reply Quote 0
                            • S
                              sullrich
                              last edited by

                              Sorry but we are not putting in hacks due to X11.  I don't have this problem on OSX or XP.  So it sounds like a X11 specific issue.  Not to mention I already said that I have no knowledge of how the SVG graph works so the last thing we need is to start diverging from the m0n0wall codebase in this instance.

                              1 Reply Last reply Reply Quote 0
                              • P
                                pk
                                last edited by

                                It's not specific to X11.  I get the problem using Firefox, Safari, Webkit on OS X.  It has to do with the SVG graph code.

                                http://m0n0.ch/wall/list-dev/showmsg.php?id=11/92
                                http://m0n0.ch/wall/list-dev/showmsg.php?id=12/36

                                I'm still waiting for the fix.

                                1 Reply Last reply Reply Quote 0
                                • S
                                  sai
                                  last edited by

                                  Firefox 1.5.0.9 on Linux shows the graphs fine.

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post
                                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.