Loading ...
Sorry, an error occurred while loading the content.

Text Scaling in Opera

Expand Messages
  • simonshutter
    Hi Folks, Can anyone explain the way Opera handles text scaling compared with FF2 and ASV3? In following example the deeply nested text elements scale well in
    Message 1 of 11 , May 20, 2007
    • 0 Attachment
      Hi Folks,

      Can anyone explain the way Opera handles text scaling compared with
      FF2 and ASV3? In following example the deeply nested text elements
      scale well in FF2 and ASV3 but all appear at the same size in Op9.

      Tx, Simon

      <svg width="500" height="500" viewBox="0 0 500 500"
      xmlns="http://www.w3.org/2000/svg" >
      <text x="0" y="10" font-size="5" font-family="Arial,Helvetica"
      pointer-events="none" fill="#000000" >
      Hello World 1
      </text>
      <svg x="0" y="30" width="800" height="600" viewBox="0 0 50 40">
      <text x="0" y="1" font-size="1" font-family="Arial,Helvetica"
      pointer-events="none" fill="#000000" >
      Hello World 2
      </text>
      <svg x="10" y="10" width="15" height="10" >
      <text x="0" y="2" font-size="1.5" font-
      family="Arial,Helvetica" pointer-events="none" fill="#000000" >
      Hello World 3
      </text>
      </svg>
      </svg>
      </svg>
    • Erik Dahlström
      ... Thanks Simon, this has now been logged in the Opera bugtracking system (bug #265620). We ll have a closer look soon. /Erik -- Using Opera s revolutionary
      Message 2 of 11 , May 21, 2007
      • 0 Attachment
        On Sun, 20 May 2007 20:20:45 +0200, simonshutter <simon@...> wrote:

        > Hi Folks,
        >
        > Can anyone explain the way Opera handles text scaling compared with
        > FF2 and ASV3? In following example the deeply nested text elements
        > scale well in FF2 and ASV3 but all appear at the same size in Op9.

        Thanks Simon, this has now been logged in the Opera bugtracking system
        (bug #265620).
        We'll have a closer look soon.
        /Erik

        --
        Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
      • "~:'' ありがとうございました
        Simon, seems fine on Opera9.2 os x nesting may present more problems than nest perhaps? see: Ockham s razor cheers Jonathan Chetwynd On 20 May 2007,
        Message 3 of 11 , May 21, 2007
        • 0 Attachment
          Simon,

          seems fine on Opera9.2 os x

          nesting <svg> may present more problems than nest <g> perhaps?
          see: Ockham's razor

          cheers

          Jonathan Chetwynd



          On 20 May 2007, at 19:20, simonshutter wrote:


          <svg width="500" height="500" viewBox="0 0 500 500"
          xmlns="http://www.w3.org/2000/svg" >
          <text x="0" y="10" font-size="5" font-family="Arial,Helvetica"
          pointer-events="none" fill="#000000" >
          Hello World 1
          </text>
          <svg x="0" y="30" width="800" height="600" viewBox="0 0 50 40">
          <text x="0" y="1" font-size="1" font-family="Arial,Helvetica"
          pointer-events="none" fill="#000000" >
          Hello World 2
          </text>
          <svg x="10" y="10" width="15" height="10" >
          <text x="0" y="2" font-size="1.5" font-
          family="Arial,Helvetica" pointer-events="none" fill="#000000" >
          Hello World 3
          </text>
          </svg>
          </svg>
          </svg>
        • simonshutter
          It seems that for Op9.10, when you specify a font-size of
          Message 4 of 11 , May 21, 2007
          • 0 Attachment
            It seems that for Op9.10, when you specify a font-size of <2.0000,
            the font-size scaling reverts to a fixed size (perhaps 16 screen
            units?).

            font-size 2.0001 is fine, 1.9999 is not.

            Simon

            --- In svg-developers@yahoogroups.com, Erik Dahlström <ed@...> wrote:
            >
            > On Sun, 20 May 2007 20:20:45 +0200, simonshutter <simon@...> wrote:
            >
            > > Hi Folks,
            > >
            > > Can anyone explain the way Opera handles text scaling compared
            with
            > > FF2 and ASV3? In following example the deeply nested text
            elements
            > > scale well in FF2 and ASV3 but all appear at the same size in Op9.
            >
            > Thanks Simon, this has now been logged in the Opera bugtracking
            system
            > (bug #265620).
            > We'll have a closer look soon.
            > /Erik
            >
            > --
            > Using Opera's revolutionary e-mail client:
            http://www.opera.com/mail/
            >
          • simonshutter
            Jonathan, But not on Op9.21 (XP), which I just upgraded to. Any font-size less than 2.000 is not scaled appropriately. If Ockham s razor == K.I.S.S. then
            Message 5 of 11 , May 21, 2007
            • 0 Attachment
              Jonathan,

              But not on Op9.21 (XP), which I just upgraded to. Any font-size less
              than 2.000 is not scaled appropriately.

              If Ockham's razor == K.I.S.S. then point taken but I'd rather not
              have to scale all text in the units of my root svg element.

              Simon


              --- In svg-developers@yahoogroups.com, "~:'' ã�‚ã‚Šã�Œã�¨ã�†ã�"ã�–
              ����。" <j.chetwynd@...> wrote:
              >
              > Simon,
              >
              > seems fine on Opera9.2 os x
              >
              > nesting <svg> may present more problems than nest <g> perhaps?
              > see: Ockham's razor
              >
              > cheers
              >
              > Jonathan Chetwynd
              >
              >
              >
              > On 20 May 2007, at 19:20, simonshutter wrote:
              >
              >
              > <svg width="500" height="500" viewBox="0 0 500 500"
              > xmlns="http://www.w3.org/2000/svg" >
              > <text x="0" y="10" font-size="5" font-family="Arial,Helvetica"
              > pointer-events="none" fill="#000000" >
              > Hello World 1
              > </text>
              > <svg x="0" y="30" width="800" height="600" viewBox="0 0 50 40">
              > <text x="0" y="1" font-size="1" font-family="Arial,Helvetica"
              > pointer-events="none" fill="#000000" >
              > Hello World 2
              > </text>
              > <svg x="10" y="10" width="15" height="10" >
              > <text x="0" y="2" font-size="1.5" font-
              > family="Arial,Helvetica" pointer-events="none" fill="#000000" >
              > Hello World 3
              > </text>
              > </svg>
              > </svg>
              > </svg>
              >
            • simonshutter
              Same for Op9.21 (xp) ... Op9.
              Message 6 of 11 , May 21, 2007
              • 0 Attachment
                Same for Op9.21 (xp)

                --- In svg-developers@yahoogroups.com, "simonshutter" <simon@...>
                wrote:
                >
                > It seems that for Op9.10, when you specify a font-size of <2.0000,
                > the font-size scaling reverts to a fixed size (perhaps 16 screen
                > units?).
                >
                > font-size 2.0001 is fine, 1.9999 is not.
                >
                > Simon
                >
                > --- In svg-developers@yahoogroups.com, Erik Dahlström <ed@> wrote:
                > >
                > > On Sun, 20 May 2007 20:20:45 +0200, simonshutter <simon@> wrote:
                > >
                > > > Hi Folks,
                > > >
                > > > Can anyone explain the way Opera handles text scaling compared
                > with
                > > > FF2 and ASV3? In following example the deeply nested text
                > elements
                > > > scale well in FF2 and ASV3 but all appear at the same size in
                Op9.
                > >
                > > Thanks Simon, this has now been logged in the Opera bugtracking
                > system
                > > (bug #265620).
                > > We'll have a closer look soon.
                > > /Erik
                > >
                > > --
                > > Using Opera's revolutionary e-mail client:
                > http://www.opera.com/mail/
                > >
                >
              • André M. Winter
                hi, are there any news here? seems as if Opera (now v9.25) ignores nested SVG for font sizes. the shown size just is the same as if the text sits in the root
                Message 7 of 11 , Jan 29, 2008
                • 0 Attachment
                  hi,

                  are there any news here? seems as if Opera (now v9.25) ignores nested
                  SVG for font sizes. the shown size just is the same as if the text
                  sits in the root element.

                  bug or feature?

                  andré



                  --- In svg-developers@yahoogroups.com, "simonshutter" <simon@...> wrote:
                  >
                  > Jonathan,
                  >
                  > But not on Op9.21 (XP), which I just upgraded to. Any font-size less
                  > than 2.000 is not scaled appropriately.
                  >
                  > If Ockham's razor == K.I.S.S. then point taken but I'd rather not
                  > have to scale all text in the units of my root svg element.
                  >
                  > Simon
                  >
                  >
                  > --- In svg-developers@yahoogroups.com, "~:''
                  ã�‚ã‚Šã�Œã�¨ã�†ã�"ã�–
                  > ����。" <j.chetwynd@> wrote:
                  > >
                  > > Simon,
                  > >
                  > > seems fine on Opera9.2 os x
                  > >
                  > > nesting <svg> may present more problems than nest <g> perhaps?
                  > > see: Ockham's razor
                  > >
                  > > cheers
                  > >
                  > > Jonathan Chetwynd
                  > >
                  > >
                  > >
                  > > On 20 May 2007, at 19:20, simonshutter wrote:
                  > >
                  > >
                  > > <svg width="500" height="500" viewBox="0 0 500 500"
                  > > xmlns="http://www.w3.org/2000/svg" >
                  > > <text x="0" y="10" font-size="5" font-family="Arial,Helvetica"
                  > > pointer-events="none" fill="#000000" >
                  > > Hello World 1
                  > > </text>
                  > > <svg x="0" y="30" width="800" height="600" viewBox="0 0 50 40">
                  > > <text x="0" y="1" font-size="1" font-family="Arial,Helvetica"
                  > > pointer-events="none" fill="#000000" >
                  > > Hello World 2
                  > > </text>
                  > > <svg x="10" y="10" width="15" height="10" >
                  > > <text x="0" y="2" font-size="1.5" font-
                  > > family="Arial,Helvetica" pointer-events="none" fill="#000000" >
                  > > Hello World 3
                  > > </text>
                  > > </svg>
                  > > </svg>
                  > > </svg>
                  > >
                  >
                • Erik Dahlström
                  Hi André, Your example looks just fine in Opera 9.50 (compared with Batik 1.7). At this point I think it s mostly security- and other critical bugfixes that
                  Message 8 of 11 , Jan 30, 2008
                  • 0 Attachment
                    Hi André,

                    Your example looks just fine in Opera 9.50 (compared with Batik 1.7).
                    At this point I think it's mostly security- and other critical bugfixes
                    that go into the 9.2x version.

                    Cheers
                    /Erik

                    On Tue, 29 Jan 2008 11:36:31 +0100, André M. Winter <ml.winter@...>
                    wrote:

                    > hi,
                    >
                    > are there any news here? seems as if Opera (now v9.25) ignores nested
                    > SVG for font sizes. the shown size just is the same as if the text
                    > sits in the root element.
                    >
                    > bug or feature?
                    >
                    > andré
                    >
                    >
                    >
                    > --- In svg-developers@yahoogroups.com, "simonshutter" <simon@...> wrote:
                    >>
                    >> Jonathan,
                    >>
                    >> But not on Op9.21 (XP), which I just upgraded to. Any font-size less
                    >> than 2.000 is not scaled appropriately.
                    >>
                    >> If Ockham's razor == K.I.S.S. then point taken but I'd rather not
                    >> have to scale all text in the units of my root svg element.
                    >>
                    >> Simon
                    >>
                    >>
                    >> --- In svg-developers@yahoogroups.com, "~:''
                    > ã�‚ã‚Šã�Œã�¨ã�†ã�"ã�–
                    >> ����。" <j.chetwynd@> wrote:
                    >> >
                    >> > Simon,
                    >> >
                    >> > seems fine on Opera9.2 os x
                    >> >
                    >> > nesting <svg> may present more problems than nest <g> perhaps?
                    >> > see: Ockham's razor
                    >> >
                    >> > cheers
                    >> >
                    >> > Jonathan Chetwynd
                    >> >
                    >> >
                    >> >
                    >> > On 20 May 2007, at 19:20, simonshutter wrote:
                    >> >
                    >> >
                    >> > <svg width="500" height="500" viewBox="0 0 500 500"
                    >> > xmlns="http://www.w3.org/2000/svg" >
                    >> > <text x="0" y="10" font-size="5" font-family="Arial,Helvetica"
                    >> > pointer-events="none" fill="#000000" >
                    >> > Hello World 1
                    >> > </text>
                    >> > <svg x="0" y="30" width="800" height="600" viewBox="0 0 50 40">
                    >> > <text x="0" y="1" font-size="1" font-family="Arial,Helvetica"
                    >> > pointer-events="none" fill="#000000" >
                    >> > Hello World 2
                    >> > </text>
                    >> > <svg x="10" y="10" width="15" height="10" >
                    >> > <text x="0" y="2" font-size="1.5" font-
                    >> > family="Arial,Helvetica" pointer-events="none" fill="#000000" >
                    >> > Hello World 3
                    >> > </text>
                    >> > </svg>
                    >> > </svg>
                    >> > </svg>
                    >> >
                    >>
                    >
                    >



                    --
                    Erik Dahlstrom, Core Technology Developer, Opera Software
                    Co-Chair, W3C SVG Working Group
                    Personal blog: http://my.opera.com/macdev_ed
                  • andre m. winter
                    hello erik here is an example with nested svgs where inner and outer svgs have 100% width and hight:
                    Message 9 of 11 , Jan 30, 2008
                    • 0 Attachment
                      hello erik

                      here is an example with nested svgs where inner and outer svgs have 100%
                      width and hight:
                      http://www.carto.net/temp/opera/test_text_opera_inner_100pc.svg

                      and maybe it is not related to nested svg, as i see now, an outer text
                      also is too large. it seems to be related to the "px" in the font-size
                      definition. Firefox needs this as far as i know. FF3, FF2, Batik1.7 and
                      ASV show the text inside the rectangle /indeed it is defined 5px
                      font-size) whereas Opera9.25 shows it too big.

                      any way to have similar font-sizes in FF, Opera and ASV?

                      thanks
                      andré

                      --
                      ___________________________________________________________________
                      andre m. winter,
                      cartography for internet and multimedia applications
                      schiessstand 4/1, a6091 goetzens, tyrol, austria
                      tel.: ++43.5234.32732
                      http://www.vectoreal.com/ SVG consulting and development
                      http://www.geotrace.net/ geo-localized high quality photographs
                      http://www.carto.at/ print and online touristic map solutions



                      >
                      > Your example looks just fine in Opera 9.50 (compared with Batik 1.7).
                      > At this point I think it's mostly security- and other critical bugfixes
                      > that go into the 9.2x version.
                      >
                      > Cheers
                      > /Erik
                      >
                      > On Tue, 29 Jan 2008 11:36:31 +0100, André M. Winter <ml.winter@...>
                      > wrote:
                      >
                      >
                      >> hi,
                      >>
                      >> are there any news here? seems as if Opera (now v9.25) ignores nested
                      >> SVG for font sizes. the shown size just is the same as if the text
                      >> sits in the root element.
                      >>
                      >> bug or feature?
                      >>
                      >> andré
                      >>
                      >>
                      >>
                      >> --- In svg-developers@yahoogroups.com, "simonshutter" <simon@...> wrote:
                      >>
                      >>> Jonathan,
                      >>>
                      >>> But not on Op9.21 (XP), which I just upgraded to. Any font-size less
                      >>> than 2.000 is not scaled appropriately.
                      >>>
                      >>> If Ockham's razor == K.I.S.S. then point taken but I'd rather not
                      >>> have to scale all text in the units of my root svg element.
                      >>>
                      >>> Simon
                      >>>
                      >>>
                      >>> --- In svg-developers@yahoogroups.com, "~:''
                      >>>
                      >> ã�‚ã‚Šã�Œã�¨ã�†ã�"ã�–
                      >>
                      >>> ����。" <j.chetwynd@> wrote:
                      >>>
                      >>>> Simon,
                      >>>>
                      >>>> seems fine on Opera9.2 os x
                      >>>>
                      >>>> nesting <svg> may present more problems than nest <g> perhaps?
                      >>>> see: Ockham's razor
                      >>>>
                      >>>> cheers
                      >>>>
                      >>>> Jonathan Chetwynd
                      >>>>
                      >>>>
                      >>>>
                      >>>> On 20 May 2007, at 19:20, simonshutter wrote:
                      >>>>
                      >>>>
                      >>>> <svg width="500" height="500" viewBox="0 0 500 500"
                      >>>> xmlns="http://www.w3.org/2000/svg" >
                      >>>> <text x="0" y="10" font-size="5" font-family="Arial,Helvetica"
                      >>>> pointer-events="none" fill="#000000" >
                      >>>> Hello World 1
                      >>>> </text>
                      >>>> <svg x="0" y="30" width="800" height="600" viewBox="0 0 50 40">
                      >>>> <text x="0" y="1" font-size="1" font-family="Arial,Helvetica"
                      >>>> pointer-events="none" fill="#000000" >
                      >>>> Hello World 2
                      >>>> </text>
                      >>>> <svg x="10" y="10" width="15" height="10" >
                      >>>> <text x="0" y="2" font-size="1.5" font-
                      >>>> family="Arial,Helvetica" pointer-events="none" fill="#000000" >
                      >>>> Hello World 3
                      >>>> </text>
                      >>>> </svg>
                      >>>> </svg>
                      >>>> </svg>
                      >>>>
                      >>>>
                      >>
                      >
                      >
                      >
                      >
                    • Andreas Neumann
                      Hi André! This problem was also fixed in Opera 9.5. You can test yourself by downloading Opera 9.5 (weekly snapshot) from http://my.opera.com/
                      Message 10 of 11 , Jan 30, 2008
                      • 0 Attachment
                        Hi André!

                        This problem was also fixed in Opera 9.5. You can test yourself by
                        downloading Opera 9.5 (weekly snapshot) from http://my.opera.com/
                        desktopteam/blog/

                        I can confirm that in Opera 9.2x the text displayed bigger, but with
                        9.5 it is fixed. Displays the same size as Batik/Firefox

                        Andreas

                        --- In svg-developers@yahoogroups.com, "andre m. winter"
                        <ml.winter@...> wrote:
                        >
                        > hello erik
                        >
                        > here is an example with nested svgs where inner and outer svgs have
                        100%
                        > width and hight:
                        > http://www.carto.net/temp/opera/test_text_opera_inner_100pc.svg
                        >
                        > and maybe it is not related to nested svg, as i see now, an outer
                        text
                        > also is too large. it seems to be related to the "px" in the font-
                        size
                        > definition. Firefox needs this as far as i know. FF3, FF2, Batik1.7
                        and
                        > ASV show the text inside the rectangle /indeed it is defined 5px
                        > font-size) whereas Opera9.25 shows it too big.
                        >
                        > any way to have similar font-sizes in FF, Opera and ASV?
                        >
                        > thanks
                        > andré
                        >
                        > --
                        > ___________________________________________________________________
                        > andre m. winter,
                        > cartography for internet and multimedia applications
                        > schiessstand 4/1, a6091 goetzens, tyrol, austria
                        > tel.: ++43.5234.32732
                        > http://www.vectoreal.com/ SVG consulting and development
                        > http://www.geotrace.net/ geo-localized high quality photographs
                        > http://www.carto.at/ print and online touristic map solutions
                        >
                        >
                        >
                        > >
                        > > Your example looks just fine in Opera 9.50 (compared with Batik
                        1.7).
                        > > At this point I think it's mostly security- and other critical
                        bugfixes
                        > > that go into the 9.2x version.
                        > >
                        > > Cheers
                        > > /Erik
                        > >
                        > > On Tue, 29 Jan 2008 11:36:31 +0100, André M. Winter
                        <ml.winter@...>
                        > > wrote:
                        > >
                        > >
                        > >> hi,
                        > >>
                        > >> are there any news here? seems as if Opera (now v9.25) ignores
                        nested
                        > >> SVG for font sizes. the shown size just is the same as if the
                        text
                        > >> sits in the root element.
                        > >>
                        > >> bug or feature?
                        > >>
                        > >> andré
                        > >>
                        > >>
                        > >>
                        > >> --- In svg-developers@yahoogroups.com, "simonshutter" <simon@>
                        wrote:
                        > >>
                        > >>> Jonathan,
                        > >>>
                        > >>> But not on Op9.21 (XP), which I just upgraded to. Any font-
                        size less
                        > >>> than 2.000 is not scaled appropriately.
                        > >>>
                        > >>> If Ockham's razor == K.I.S.S. then point taken but I'd rather
                        not
                        > >>> have to scale all text in the units of my root svg element.
                        > >>>
                        > >>> Simon
                        > >>>
                        > >>>
                        > >>> --- In svg-developers@yahoogroups.com, "~:''
                        > >>>
                        > >> ã�‚ã‚Šã�Å'ã�¨ã�†ã�"ã�â€"
                        > >>
                        > >>> ã�„ã�¾ã�â€"ã�Ÿã€‚" <j.chetwynd@>
                        wrote:
                        > >>>
                        > >>>> Simon,
                        > >>>>
                        > >>>> seems fine on Opera9.2 os x
                        > >>>>
                        > >>>> nesting <svg> may present more problems than nest <g> perhaps?
                        > >>>> see: Ockham's razor
                        > >>>>
                        > >>>> cheers
                        > >>>>
                        > >>>> Jonathan Chetwynd
                        > >>>>
                        > >>>>
                        > >>>>
                        > >>>> On 20 May 2007, at 19:20, simonshutter wrote:
                        > >>>>
                        > >>>>
                        > >>>> <svg width="500" height="500" viewBox="0 0 500 500"
                        > >>>> xmlns="http://www.w3.org/2000/svg" >
                        > >>>> <text x="0" y="10" font-size="5" font-family="Arial,Helvetica"
                        > >>>> pointer-events="none" fill="#000000" >
                        > >>>> Hello World 1
                        > >>>> </text>
                        > >>>> <svg x="0" y="30" width="800" height="600" viewBox="0 0 50 40">
                        > >>>> <text x="0" y="1" font-size="1" font-family="Arial,Helvetica"
                        > >>>> pointer-events="none" fill="#000000" >
                        > >>>> Hello World 2
                        > >>>> </text>
                        > >>>> <svg x="10" y="10" width="15" height="10" >
                        > >>>> <text x="0" y="2" font-size="1.5" font-
                        > >>>> family="Arial,Helvetica" pointer-events="none" fill="#000000" >
                        > >>>> Hello World 3
                        > >>>> </text>
                        > >>>> </svg>
                        > >>>> </svg>
                        > >>>> </svg>
                        > >>>>
                        > >>>>
                        > >>
                        > >
                        > >
                        > >
                        > >
                        >
                      • andre m. winter
                        hi. ... ah! i didn t pay attention to the version number in Erik s message. but call it beta, as it obviously is... text displays better but somehow smaller in
                        Message 11 of 11 , Jan 31, 2008
                        • 0 Attachment
                          hi.
                          > This problem was also fixed in Opera 9.5.

                          ah! i didn't pay attention to the version number in Erik's message. but
                          call it beta, as it obviously is...

                          text displays better but somehow smaller in opeara as designed in
                          Illustrator and shown in ASV:

                          http://www.carto.net/temp/svgdev/jpgs/fontrendering_op95_aaas.jpg
                          http://www.carto.net/temp/svgdev/jpgs/fontrendering_ai_aaas.jpg
                          http://www.carto.net/temp/svgdev/jpgs/fontrendering_asv_aaas.jpg

                          btw. i see redraw problems when content gets zoomed by
                          currentScale/Translate. i know this is not the appropriate place to post
                          this but i am mainly developping with and for FF/ASV. anyhow i like to
                          see things work elsewere too. please contact me offlist if you (opera)
                          want to have a look in further developments of a map interface based on
                          html and svg in (inframes for ASV-compatibility) and originally
                          describes here:
                          http://www.svgopen.org/2007/paperAbstracts/StrandMaps_PrintToInteractiveSVG.html

                          andré

                          --
                          ___________________________________________________________________
                          andre m. winter,
                          cartography for internet and multimedia applications
                          schiessstand 4/1, a6091 goetzens, tyrol, austria
                          tel.: ++43.5234.32732
                          http://www.vectoreal.com/ SVG consulting and development
                          http://www.geotrace.net/ geo-localized high quality photographs
                          http://www.carto.at/ print and online touristic map solutions
                        Your message has been successfully submitted and would be delivered to recipients shortly.