Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-31359

Font Loading is broken on Android and OSX,Blackberry, and horizontal and vertical fit enums broken.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.1.0 Beta 1
    • None
    • Host: OSX Mountain Lion, Targets: OSX Mountain Lion, Android 2.3.3, Blackberry 10
      The picture below shows the difference between the font and the Helvetica
    • Android

    Description

      FontLoader
      {
      id:flat_manteka_font
      // Use name here to reference the tff loaded into the qrc.
      name:"flat_manteka_font_source"
      source:"qrc:/font/manteka.ttf" // or source:"manteka.tff"
      }

      Rectangle
      {
      height: 200
      width: 200
      Text
      {
      id: button_label
      text: "CAMERA"
      font.family: flat_manteka_font.name // or flat_manteka_font.source
      fontSizeMode: Text.HorizontalFit or vertical fit //isn't horizontal fit supposed to stretch the text across the container ? it does not appear to work.... :S report this as well
      color: flat_style.flat_colors.flat_clouds
      anchors.bottom: button.bottom
      anchors.horizontalCenter: button.horizontalCenter
      }

      The operation couldn't be completed. (com.apple.coretext error -1 - Could not register the font file 'file://localhost/Users/rock/CodeWorkSpaces/QtCreatorWorkspace/TimeFrameAlpha/qml/TimeFrameAlpha/manteka.ttf')" UserInfo=0×7fed5847f510

      {NSDescription=Could not register the font file 'file://localhost/Users/rock/CodeWorkSpaces/QtCreatorWorkspace/TimeFrameAlpha/qml/TimeFrameAlpha/manteka.ttf', CTFailedFontFileURL=file://localhost/Users/rock/CodeWorkSpaces/QtCreatorWorkspace/TimeFrameAlpha/qml/TimeFrameAlpha/manteka.ttf}

      Vertical Fit as well does not fit the font. Could this be due to the fact that the font is not loaded so it defaults to the system font and then skips the horizontal fit ?

      could not get debugging information for Android or Blackberry 10, but same issue.
      but the font is the Helvetica default font.

      http://creattica.com/free-fonts/manteka-free-font/76955

      You will notice that the centre dip M in Helvetica are all the way to the bottom anchor.
      Where as in manteka the M only dips a 1/4 of the way down.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aalpert Alan Alpert
            rocketchicken Michael
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes