Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qfont
    Log in to post

    • SOLVED <font family> gets removed from .ui header files after upgrading Qt Creator from v5 to v6 ?
      General and Desktop • font qfont fonts font family • • R-P-H  

      21
      0
      Votes
      21
      Posts
      407
      Views

      @ChrisW67 Really so hard the read the bug report and what I wrote? It is fixed in 6.2.3 and 6.3.x ...
    • UNSOLVED how can i increase font size of QLabel with help of Qwidget::setFont()?
      General and Desktop • qwidget qlabel qfont • • Yash001  

      6
      0
      Votes
      6
      Posts
      2025
      Views

      no, decrese the font size and see if it works. then you'll know whether you can change font size at all. If it works then that should be a hint as to why you cannot increase the size.
    • UNSOLVED how to keep good quality of label in terms of pixel while changing the font Size?
      General and Desktop • qlabel qstyle qwt qstylesheet qfont • • Yash001  

      11
      0
      Votes
      11
      Posts
      1670
      Views

      @SGaist got it.
    • UNSOLVED Read and write QBrush (QPen, QFont) as XML
      General and Desktop • xml serialization qfont qbrush qpen • • TheTrueGoofy  

      6
      0
      Votes
      6
      Posts
      1444
      Views

      @TheTrueGoofy said in Read and write QBrush (QPen, QFont) as XML: Certainly this is also quite simple to implement, but I was hoping that there is a more elegant solution. I think the only other way is to create feature request for QtGui, or implement a Qt patch yourself - to add a QBrush::toString() method (or QTextStream overload), with a corresponding QBrush::fromString().
    • UNSOLVED QFont::pixelSize returns -1
      General and Desktop • qfont font size • • Warbit  

      6
      0
      Votes
      6
      Posts
      1626
      Views

      @Asperamanca Doc says "Returns the pixel size of the font if it was set with setPixelSize() ". OP says " But I do not ever explicit used that methods in my program." so it returns -1 for him always.
    • SOLVED Get the coordinate of specific character in a text givent font and string
      General and Desktop • qfont qfontmetrics • • Violet Giraffe  

      8
      0
      Votes
      8
      Posts
      1775
      Views

      @Violet-Giraffe said: Isn't any modern C++ compiler capable of doing that optimization implicitly (with optimizations enabled)? In all probability, yes; it's just a stupid habit. Compilers weren't so smart before, but they are improving by the minute. You can safely replace it with left.height() / 2.
    • QOpenGLFrameBuffer toImage(): text with too big font size displayed as black bar
      General and Desktop • qpainter qopenglframebuf qfont • • Qtpie  

      1
      0
      Votes
      1
      Posts
      838
      Views

      No one has replied

    • Get the style of the font file using QFont
      General and Desktop • python qfont • • Gowthaman  

      6
      0
      Votes
      6
      Posts
      1647
      Views

      Weight is an enumeration and theres a corresponding getter
    • Get Number (& Sizes) of Bitmap-Fonts inside a .ttf
      General and Desktop • qfont ttf truetype bitmaps • • CyberWorker  

      1
      0
      Votes
      1
      Posts
      549
      Views

      No one has replied

    • Dilemma with Truetype/ClearType or maybe Qt itself?
      General and Desktop • qpainter qimage qfont truetype ttf bitmap cleartype otf bitmap-font renderengine • • CyberWorker  

      4
      0
      Votes
      4
      Posts
      2126
      Views

      Ok, I found the solution for Windows-Side: When opening a font with FontForge, there (in GridFitting-Options) one can set certain attributes for certain point-sizes, such as Antialiasing. There is even two special columns for giving attributes to ClearType. These settings will be respected by ClearType, so no need to switch it off. On Linux based OS, I still am no further, except that I know that some sort of fontconfig is what Qt5 "reads" and therefore decides. Unfortunately the Linux-RenderEngine ignores the above mentioned internal font-attributes.