UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    New Custom Font

    Scheduled Pinned Locked Moved Support
    8 Posts 4 Posters 531 Views 2 Watching
    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.
      • N Offline
        nibzy26
        last edited by nibzy26

        Hi , I am new to UT.
        I have cloned the main lomiri repo and making changes in the src qml files for greeter service.

        1. What font types I can use ? Are all ubuntu based fonts supported like Arial or TimersNewRoman fonts .
          I want to say
          font.family; Arial

        2. If No then why not and if yes then how can i define my custom font and which src files to change ?

        Question#2 :

        In qml file i have put console.log statements at many places. how can i see those statements when i interact with pinprompt.qml page for example. I have done journalctl -f -u lomiri-full-greeter.service but not seeing my console.log msgs

        please advise

        Thanks

        lduboeufL ikozI 2 Replies Last reply Reply Quote 0
        • CiberSheepC CiberSheep moved this topic from OS on
        • lduboeufL Offline
          lduboeuf @nibzy26
          last edited by

          @nibzy26 said in New Custom Font:

          Question#2 :

          In qml file i have put console.log statements at many places. how can i see those statements when i interact with pinprompt.qml page for example. I have done journalctl -f -u lomiri-full-greeter.service but not seeing my console.log msgs

          please advise

          Thanks

          Sorry, only can answer the #2,

          Do you restart Lomiri when doing any changes ?
          systemctl --user restart lomiri-full-greeter.service

          1 Reply Last reply Reply Quote 0
          • ikozI Offline
            ikoz @nibzy26
            last edited by

            @nibzy26 In QML, the correct way is

            font.family: "Arial"
            

            (: not ; and Arial is a string so it should be with quotes).
            All fonts supported by Ubuntu should be available on UT too.
            I just checked the Arial font and it is available

            May the source be with you

            N arubislanderA 2 Replies Last reply Reply Quote 0
            • N Offline
              nibzy26 @ikoz
              last edited by

              @ikoz Thanks

              Thats good. should the font support be in qml or in UT ?
              where can i see the font files to confirm which other fonts are supported on UT ? the ttf files in /usr/share somewhere ?

              Regards

              arubislanderA N 2 Replies Last reply Reply Quote 0
              • arubislanderA Offline
                arubislander @nibzy26
                last edited by

                @nibzy26 said in New Custom Font:

                ... should the font support be in qml or in UT ?

                Whatever fonts are available to the system are also available in QML. It is not a separate environment or anything.

                where can i see the font files to confirm which other fonts are supported on UT ? the ttf files in /usr/share somewhere ?

                Fonts can be found in the same places as regular desktop Ubuntu. A quick web search will turn up the info you are looking for.

                πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                Happily running Ubuntu Touch
                Google Pixel 3a (20.04 DEV)
                JingPad (24.04 preview)
                Meizu Pro 5 (16.04 DEV)

                1 Reply Last reply Reply Quote 0
                • N Offline
                  nibzy26 @nibzy26
                  last edited by

                  @ikoz

                  By the way fc-list | grep -irne "arial" gives lot of output on my ubuntu PC but gives nothing on my UT redmi phone. I have installed Ubuntu 20.04 on my phone using ub ports installer

                  Just curious How did you check ?

                  Thanks

                  ikozI 1 Reply Last reply Reply Quote 0
                  • arubislanderA Offline
                    arubislander @ikoz
                    last edited by

                    @ikoz said in New Custom Font:

                    All fonts supported by Ubuntu should be available on UT too.

                    This is not necessarily the case, as due to base image size concerns / constraints for certain devices, a selection might have been made to not include some.
                    But any missing fonts can be added to the users $HOME/.fonts folder, if you are looking at personal customization.

                    πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                    Happily running Ubuntu Touch
                    Google Pixel 3a (20.04 DEV)
                    JingPad (24.04 preview)
                    Meizu Pro 5 (16.04 DEV)

                    1 Reply Last reply Reply Quote 0
                    • ikozI Offline
                      ikoz @nibzy26
                      last edited by

                      @nibzy26 I checked by changing the font in a clickable example app.

                      May the source be with you

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post