• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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 16 Oct 2023, 08:08

      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

      L I 2 Replies Last reply 16 Oct 2023, 13:24 Reply Quote 0
      • C CiberSheep moved this topic from OS on 16 Oct 2023, 12:18
      • L Offline
        lduboeuf @nibzy26
        last edited by 16 Oct 2023, 13:24

        @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
        • I Offline
          ikoz @nibzy26
          last edited by 16 Oct 2023, 16:36

          @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 A 2 Replies Last reply 17 Oct 2023, 05:19 Reply Quote 0
          • N Offline
            nibzy26 @ikoz
            last edited by 17 Oct 2023, 05:19

            @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

            A N 2 Replies Last reply 17 Oct 2023, 05:53 Reply Quote 0
            • A Offline
              arubislander @nibzy26
              last edited by 17 Oct 2023, 05:53

              @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 17 Oct 2023, 07:37

                @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

                I 1 Reply Last reply 18 Oct 2023, 10:39 Reply Quote 0
                • A Offline
                  arubislander @ikoz
                  last edited by 17 Oct 2023, 07:53

                  @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
                  • I Offline
                    ikoz @nibzy26
                    last edited by 18 Oct 2023, 10:39

                    @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
                    2 out of 8
                    • First post
                      2/8
                      Last post