Menu

#354 Fonts in plots are 1 pt lower than that defined in preferences

next
closed
nobody
None
4normal
2018-12-12
2018-10-17
Fellype
No

The fonts in 2D plots - Title, Legend, Axes labels and Axes numbers - are 1 pt lower than that defined in Edit -> Preferences -> 2D Plots -> Fonts
This happens only for new SciDAVis installations, i. e., if SciDAVis.conf file is that generated in 1st run. Due to this reason, I don't know if it is a bug in beta (1.23.2) or an old one.
In 3D plots the fonts looks ok.

I'm sorry for the poor description and lack of details. I'm very busy these days...

Related

SciDAVis Bugs: #354

Discussion

  • gbm

    gbm - 2018-10-22

    To avoid this bug you can uncheck the "Scale Fonts" button in the Edit/Preferences/2D Plots/Options panel before creating the 2D plot windows.
    Alternatively, apply the attached patch that circumvents the bug.

     
    • Fellype

      Fellype - 2018-10-23

      The patch works.

       
  • High Performance Coder

    Hi Miquel - did you ever get to the bottom of why we were either getting a resize event with a less than unity scale factor, or that setting and resetting the font point size would decrease the the value? Your solution here looks like a workaround of a bug elsewhere in the system.

     
  • gbm

    gbm - 2018-10-23

    Yes, there is a bug elsewhere.
    The graph window generates/receives a resize event when the constructor has already ended.
    At that point the autoScaleFonts boolean, disabled in constructor, is active again.
    The patch just reverts in the constructor the font resize that comes after the constructor.
    Until the real bug is found, the patch makes a reasonable workaround.

     
  • High Performance Coder

    • status: open --> closed
     
  • High Performance Coder

    Lets mark this done, then

     
  • gbm

    gbm - 2018-12-10

    Hi Fellype,
    Can you check if the attached patch (against current HEAD ffc276e) fixes this bug.

     
    • Fellype

      Fellype - 2018-12-11

      Hi Miquel,
      Yes, of course. I'll do it tomorrow.

      Fellype - fellypaoøyahoo.com.br

      Trabalhando por um mundo Livre.
      _ _ _ _ _ _ _ _ _ _ _ _ _
      Se está meio cheio ou meio vazio é uma questão de ponto de vista. Mas o fato é que está pela metade.

      Em segunda-feira, 10 de dezembro de 2018 20:13:19 BRST, gbm <gbmiquel@users.sourceforge.net> escreveu:
      

      Hi Fellype,
      Can you check if the attached patch (against current HEAD ffc276e) fixes this bug.

      Attachments:

      • fix-for-sf354-font-size-initialization.patch (2.6 kB; text/x-patch)

      [scidavis-bugs:#354] Fonts in plots are 1 pt lower than that defined in preferences

      Status: closed
      Group: next
      Created: Wed Oct 17, 2018 01:19 AM UTC by Fellype
      Last Updated: Wed Oct 24, 2018 11:32 PM UTC

      Owner: nobody
      The fonts in 2D plots - Title, Legend, Axes labels and Axes numbers - are 1 pt lower than that defined in Edit -> Preferences -> 2D Plots -> Fonts
      This happens only for new SciDAVis installations, i. e., if SciDAVis.conf file is that generated in 1st run. Due to this reason, I don't know if it is a bug in beta (1.23.2) or an old one.
      In 3D plots the fonts looks ok.

      I'm sorry for the poor description and lack of details. I'm very busy these days...

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/scidavis/scidavis-bugs/354/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      SciDAVis Bugs: #354

    • Fellype

      Fellype - 2018-12-11

      Hi Miquel,
      The bug looks to be fixed with the proposed patch. Good job.

       

Log in to post a comment.