Conky does not use instructed font with “can't load Xft font” error












5















conky: can't load Xft font 'Ubuntu:size=8,weight:normal' is the error message which appears in the terminal.



use_xft yes is present in the Conky config file.



The Conky file can be found here










share|improve this question



























    5















    conky: can't load Xft font 'Ubuntu:size=8,weight:normal' is the error message which appears in the terminal.



    use_xft yes is present in the Conky config file.



    The Conky file can be found here










    share|improve this question

























      5












      5








      5








      conky: can't load Xft font 'Ubuntu:size=8,weight:normal' is the error message which appears in the terminal.



      use_xft yes is present in the Conky config file.



      The Conky file can be found here










      share|improve this question














      conky: can't load Xft font 'Ubuntu:size=8,weight:normal' is the error message which appears in the terminal.



      use_xft yes is present in the Conky config file.



      The Conky file can be found here







      fonts conky






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 17 '16 at 15:30









      Grim ReaperGrim Reaper

      14116




      14116






















          5 Answers
          5






          active

          oldest

          votes


















          2














          Conky 1.10 configuration file use a new syntax !
          Usually, it can convert old file "on the fly" but it seems that the version of 16.04 have some issue.



          I had the same problem as you since I updated my machine. After a lot research, it seems that you must convert your configuration file to the new format.



          To help you, there is a script located in :



          /usr/share/doc/conky-all/convert.lua


          see here : Convert to new 1.10 syntax



          You must install "lua5.2" first and then make the script executable (as root)



          Then, from ~/.conky where your config file should be located :



          /usr/share/doc/conky-all/convert.lua <your_conkyrc>


          Pay attention :




          • the configuration file should be in the "old" format

          • the conversion script overwrite the old version ! Make a copy before if needed


          Then, you will still have the problem with the font, but if you convert as explained by DK Bose, it should work (it worked for me)



          {font Ubuntu:bold:size=7}


          (no '=' after 'font')



          Good luck






          share|improve this answer































            2














            I poked around on this, and with my environment, I had some different issues.



            I'm using Unity with Compiz. My Lua Rings weren't working, and neither were my fonts. My Lua Rings were just in the wrong directory.



            I had changed the font to Ubuntu. However, the format was wrong as indicated in this thread. However, my format didn't match any of the ones listed here in previous comments.



            I'm attaching a sample of some of my properly formatted text from the memory section of my Seamod that works with my environment:



            ${offset 90}${font Ubuntu:bold:size=10}${color5}MEM


            So for me, I had to find and replace:



            font Ubuntu:size=10,weight:normal


            with



            font Ubuntu:bold:size=10





            share|improve this answer

































              1














              Instead of



              Ubuntu:size=8,weight:normal



              try



              font = 'Ubuntu:normal:size=8'



              This assumes you are using Conky version 1.10.






              share|improve this answer































                1














                Just remove ",weight" part from font lines in conky config:



                For example, replace



                [...]
                ${color5}${font Ubuntu:size=8,weight:normal}TOP
                ${font Ubuntu:size=8,weight:normal}${color1}${top name 1}${alignr}${top cpu 1}%
                [...]


                by



                [...]
                ${color5}${font Ubuntu:size=8:normal}TOP
                ${font Ubuntu:size=8:normal}${color1}${top name 1}${alignr}${top cpu 1}%
                [...]


                P.S. Tested on Lubuntu 16.04 (conky 1.10).






                share|improve this answer





















                • 1





                  worked for me on Ubuntu 18.04!

                  – Waylon Flinn
                  May 15 '18 at 16:56











                • I did it in Linux Mint 19 (Tara) Mate and after reload conky, same error appear. Like my config haven't changed anything.

                  – Marcelo Ágil
                  Nov 5 '18 at 16:33



















                0














                That might be https://github.com/brndnmtthws/conky/issues/778 - use "true" instead of "yes".






                share|improve this answer























                  Your Answer








                  StackExchange.ready(function() {
                  var channelOptions = {
                  tags: "".split(" "),
                  id: "89"
                  };
                  initTagRenderer("".split(" "), "".split(" "), channelOptions);

                  StackExchange.using("externalEditor", function() {
                  // Have to fire editor after snippets, if snippets enabled
                  if (StackExchange.settings.snippets.snippetsEnabled) {
                  StackExchange.using("snippets", function() {
                  createEditor();
                  });
                  }
                  else {
                  createEditor();
                  }
                  });

                  function createEditor() {
                  StackExchange.prepareEditor({
                  heartbeatType: 'answer',
                  autoActivateHeartbeat: false,
                  convertImagesToLinks: true,
                  noModals: true,
                  showLowRepImageUploadWarning: true,
                  reputationToPostImages: 10,
                  bindNavPrevention: true,
                  postfix: "",
                  imageUploader: {
                  brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                  contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                  allowUrls: true
                  },
                  onDemand: true,
                  discardSelector: ".discard-answer"
                  ,immediatelyShowMarkdownHelp:true
                  });


                  }
                  });














                  draft saved

                  draft discarded


















                  StackExchange.ready(
                  function () {
                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f788228%2fconky-does-not-use-instructed-font-with-cant-load-xft-font-error%23new-answer', 'question_page');
                  }
                  );

                  Post as a guest















                  Required, but never shown

























                  5 Answers
                  5






                  active

                  oldest

                  votes








                  5 Answers
                  5






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes









                  2














                  Conky 1.10 configuration file use a new syntax !
                  Usually, it can convert old file "on the fly" but it seems that the version of 16.04 have some issue.



                  I had the same problem as you since I updated my machine. After a lot research, it seems that you must convert your configuration file to the new format.



                  To help you, there is a script located in :



                  /usr/share/doc/conky-all/convert.lua


                  see here : Convert to new 1.10 syntax



                  You must install "lua5.2" first and then make the script executable (as root)



                  Then, from ~/.conky where your config file should be located :



                  /usr/share/doc/conky-all/convert.lua <your_conkyrc>


                  Pay attention :




                  • the configuration file should be in the "old" format

                  • the conversion script overwrite the old version ! Make a copy before if needed


                  Then, you will still have the problem with the font, but if you convert as explained by DK Bose, it should work (it worked for me)



                  {font Ubuntu:bold:size=7}


                  (no '=' after 'font')



                  Good luck






                  share|improve this answer




























                    2














                    Conky 1.10 configuration file use a new syntax !
                    Usually, it can convert old file "on the fly" but it seems that the version of 16.04 have some issue.



                    I had the same problem as you since I updated my machine. After a lot research, it seems that you must convert your configuration file to the new format.



                    To help you, there is a script located in :



                    /usr/share/doc/conky-all/convert.lua


                    see here : Convert to new 1.10 syntax



                    You must install "lua5.2" first and then make the script executable (as root)



                    Then, from ~/.conky where your config file should be located :



                    /usr/share/doc/conky-all/convert.lua <your_conkyrc>


                    Pay attention :




                    • the configuration file should be in the "old" format

                    • the conversion script overwrite the old version ! Make a copy before if needed


                    Then, you will still have the problem with the font, but if you convert as explained by DK Bose, it should work (it worked for me)



                    {font Ubuntu:bold:size=7}


                    (no '=' after 'font')



                    Good luck






                    share|improve this answer


























                      2












                      2








                      2







                      Conky 1.10 configuration file use a new syntax !
                      Usually, it can convert old file "on the fly" but it seems that the version of 16.04 have some issue.



                      I had the same problem as you since I updated my machine. After a lot research, it seems that you must convert your configuration file to the new format.



                      To help you, there is a script located in :



                      /usr/share/doc/conky-all/convert.lua


                      see here : Convert to new 1.10 syntax



                      You must install "lua5.2" first and then make the script executable (as root)



                      Then, from ~/.conky where your config file should be located :



                      /usr/share/doc/conky-all/convert.lua <your_conkyrc>


                      Pay attention :




                      • the configuration file should be in the "old" format

                      • the conversion script overwrite the old version ! Make a copy before if needed


                      Then, you will still have the problem with the font, but if you convert as explained by DK Bose, it should work (it worked for me)



                      {font Ubuntu:bold:size=7}


                      (no '=' after 'font')



                      Good luck






                      share|improve this answer













                      Conky 1.10 configuration file use a new syntax !
                      Usually, it can convert old file "on the fly" but it seems that the version of 16.04 have some issue.



                      I had the same problem as you since I updated my machine. After a lot research, it seems that you must convert your configuration file to the new format.



                      To help you, there is a script located in :



                      /usr/share/doc/conky-all/convert.lua


                      see here : Convert to new 1.10 syntax



                      You must install "lua5.2" first and then make the script executable (as root)



                      Then, from ~/.conky where your config file should be located :



                      /usr/share/doc/conky-all/convert.lua <your_conkyrc>


                      Pay attention :




                      • the configuration file should be in the "old" format

                      • the conversion script overwrite the old version ! Make a copy before if needed


                      Then, you will still have the problem with the font, but if you convert as explained by DK Bose, it should work (it worked for me)



                      {font Ubuntu:bold:size=7}


                      (no '=' after 'font')



                      Good luck







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Jun 22 '16 at 19:07









                      ericcericc

                      1211




                      1211

























                          2














                          I poked around on this, and with my environment, I had some different issues.



                          I'm using Unity with Compiz. My Lua Rings weren't working, and neither were my fonts. My Lua Rings were just in the wrong directory.



                          I had changed the font to Ubuntu. However, the format was wrong as indicated in this thread. However, my format didn't match any of the ones listed here in previous comments.



                          I'm attaching a sample of some of my properly formatted text from the memory section of my Seamod that works with my environment:



                          ${offset 90}${font Ubuntu:bold:size=10}${color5}MEM


                          So for me, I had to find and replace:



                          font Ubuntu:size=10,weight:normal


                          with



                          font Ubuntu:bold:size=10





                          share|improve this answer






























                            2














                            I poked around on this, and with my environment, I had some different issues.



                            I'm using Unity with Compiz. My Lua Rings weren't working, and neither were my fonts. My Lua Rings were just in the wrong directory.



                            I had changed the font to Ubuntu. However, the format was wrong as indicated in this thread. However, my format didn't match any of the ones listed here in previous comments.



                            I'm attaching a sample of some of my properly formatted text from the memory section of my Seamod that works with my environment:



                            ${offset 90}${font Ubuntu:bold:size=10}${color5}MEM


                            So for me, I had to find and replace:



                            font Ubuntu:size=10,weight:normal


                            with



                            font Ubuntu:bold:size=10





                            share|improve this answer




























                              2












                              2








                              2







                              I poked around on this, and with my environment, I had some different issues.



                              I'm using Unity with Compiz. My Lua Rings weren't working, and neither were my fonts. My Lua Rings were just in the wrong directory.



                              I had changed the font to Ubuntu. However, the format was wrong as indicated in this thread. However, my format didn't match any of the ones listed here in previous comments.



                              I'm attaching a sample of some of my properly formatted text from the memory section of my Seamod that works with my environment:



                              ${offset 90}${font Ubuntu:bold:size=10}${color5}MEM


                              So for me, I had to find and replace:



                              font Ubuntu:size=10,weight:normal


                              with



                              font Ubuntu:bold:size=10





                              share|improve this answer















                              I poked around on this, and with my environment, I had some different issues.



                              I'm using Unity with Compiz. My Lua Rings weren't working, and neither were my fonts. My Lua Rings were just in the wrong directory.



                              I had changed the font to Ubuntu. However, the format was wrong as indicated in this thread. However, my format didn't match any of the ones listed here in previous comments.



                              I'm attaching a sample of some of my properly formatted text from the memory section of my Seamod that works with my environment:



                              ${offset 90}${font Ubuntu:bold:size=10}${color5}MEM


                              So for me, I had to find and replace:



                              font Ubuntu:size=10,weight:normal


                              with



                              font Ubuntu:bold:size=10






                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited Aug 2 '16 at 13:57









                              grooveplex

                              2,21411433




                              2,21411433










                              answered Aug 1 '16 at 2:08









                              matrix8967matrix8967

                              365




                              365























                                  1














                                  Instead of



                                  Ubuntu:size=8,weight:normal



                                  try



                                  font = 'Ubuntu:normal:size=8'



                                  This assumes you are using Conky version 1.10.






                                  share|improve this answer




























                                    1














                                    Instead of



                                    Ubuntu:size=8,weight:normal



                                    try



                                    font = 'Ubuntu:normal:size=8'



                                    This assumes you are using Conky version 1.10.






                                    share|improve this answer


























                                      1












                                      1








                                      1







                                      Instead of



                                      Ubuntu:size=8,weight:normal



                                      try



                                      font = 'Ubuntu:normal:size=8'



                                      This assumes you are using Conky version 1.10.






                                      share|improve this answer













                                      Instead of



                                      Ubuntu:size=8,weight:normal



                                      try



                                      font = 'Ubuntu:normal:size=8'



                                      This assumes you are using Conky version 1.10.







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Jun 17 '16 at 16:31









                                      DK BoseDK Bose

                                      14.5k124286




                                      14.5k124286























                                          1














                                          Just remove ",weight" part from font lines in conky config:



                                          For example, replace



                                          [...]
                                          ${color5}${font Ubuntu:size=8,weight:normal}TOP
                                          ${font Ubuntu:size=8,weight:normal}${color1}${top name 1}${alignr}${top cpu 1}%
                                          [...]


                                          by



                                          [...]
                                          ${color5}${font Ubuntu:size=8:normal}TOP
                                          ${font Ubuntu:size=8:normal}${color1}${top name 1}${alignr}${top cpu 1}%
                                          [...]


                                          P.S. Tested on Lubuntu 16.04 (conky 1.10).






                                          share|improve this answer





















                                          • 1





                                            worked for me on Ubuntu 18.04!

                                            – Waylon Flinn
                                            May 15 '18 at 16:56











                                          • I did it in Linux Mint 19 (Tara) Mate and after reload conky, same error appear. Like my config haven't changed anything.

                                            – Marcelo Ágil
                                            Nov 5 '18 at 16:33
















                                          1














                                          Just remove ",weight" part from font lines in conky config:



                                          For example, replace



                                          [...]
                                          ${color5}${font Ubuntu:size=8,weight:normal}TOP
                                          ${font Ubuntu:size=8,weight:normal}${color1}${top name 1}${alignr}${top cpu 1}%
                                          [...]


                                          by



                                          [...]
                                          ${color5}${font Ubuntu:size=8:normal}TOP
                                          ${font Ubuntu:size=8:normal}${color1}${top name 1}${alignr}${top cpu 1}%
                                          [...]


                                          P.S. Tested on Lubuntu 16.04 (conky 1.10).






                                          share|improve this answer





















                                          • 1





                                            worked for me on Ubuntu 18.04!

                                            – Waylon Flinn
                                            May 15 '18 at 16:56











                                          • I did it in Linux Mint 19 (Tara) Mate and after reload conky, same error appear. Like my config haven't changed anything.

                                            – Marcelo Ágil
                                            Nov 5 '18 at 16:33














                                          1












                                          1








                                          1







                                          Just remove ",weight" part from font lines in conky config:



                                          For example, replace



                                          [...]
                                          ${color5}${font Ubuntu:size=8,weight:normal}TOP
                                          ${font Ubuntu:size=8,weight:normal}${color1}${top name 1}${alignr}${top cpu 1}%
                                          [...]


                                          by



                                          [...]
                                          ${color5}${font Ubuntu:size=8:normal}TOP
                                          ${font Ubuntu:size=8:normal}${color1}${top name 1}${alignr}${top cpu 1}%
                                          [...]


                                          P.S. Tested on Lubuntu 16.04 (conky 1.10).






                                          share|improve this answer















                                          Just remove ",weight" part from font lines in conky config:



                                          For example, replace



                                          [...]
                                          ${color5}${font Ubuntu:size=8,weight:normal}TOP
                                          ${font Ubuntu:size=8,weight:normal}${color1}${top name 1}${alignr}${top cpu 1}%
                                          [...]


                                          by



                                          [...]
                                          ${color5}${font Ubuntu:size=8:normal}TOP
                                          ${font Ubuntu:size=8:normal}${color1}${top name 1}${alignr}${top cpu 1}%
                                          [...]


                                          P.S. Tested on Lubuntu 16.04 (conky 1.10).







                                          share|improve this answer














                                          share|improve this answer



                                          share|improve this answer








                                          edited Sep 23 '16 at 9:44

























                                          answered Sep 23 '16 at 9:38









                                          DIG mblDIG mbl

                                          1537




                                          1537








                                          • 1





                                            worked for me on Ubuntu 18.04!

                                            – Waylon Flinn
                                            May 15 '18 at 16:56











                                          • I did it in Linux Mint 19 (Tara) Mate and after reload conky, same error appear. Like my config haven't changed anything.

                                            – Marcelo Ágil
                                            Nov 5 '18 at 16:33














                                          • 1





                                            worked for me on Ubuntu 18.04!

                                            – Waylon Flinn
                                            May 15 '18 at 16:56











                                          • I did it in Linux Mint 19 (Tara) Mate and after reload conky, same error appear. Like my config haven't changed anything.

                                            – Marcelo Ágil
                                            Nov 5 '18 at 16:33








                                          1




                                          1





                                          worked for me on Ubuntu 18.04!

                                          – Waylon Flinn
                                          May 15 '18 at 16:56





                                          worked for me on Ubuntu 18.04!

                                          – Waylon Flinn
                                          May 15 '18 at 16:56













                                          I did it in Linux Mint 19 (Tara) Mate and after reload conky, same error appear. Like my config haven't changed anything.

                                          – Marcelo Ágil
                                          Nov 5 '18 at 16:33





                                          I did it in Linux Mint 19 (Tara) Mate and after reload conky, same error appear. Like my config haven't changed anything.

                                          – Marcelo Ágil
                                          Nov 5 '18 at 16:33











                                          0














                                          That might be https://github.com/brndnmtthws/conky/issues/778 - use "true" instead of "yes".






                                          share|improve this answer




























                                            0














                                            That might be https://github.com/brndnmtthws/conky/issues/778 - use "true" instead of "yes".






                                            share|improve this answer


























                                              0












                                              0








                                              0







                                              That might be https://github.com/brndnmtthws/conky/issues/778 - use "true" instead of "yes".






                                              share|improve this answer













                                              That might be https://github.com/brndnmtthws/conky/issues/778 - use "true" instead of "yes".







                                              share|improve this answer












                                              share|improve this answer



                                              share|improve this answer










                                              answered Jan 31 at 17:39









                                              Cees TimmermanCees Timmerman

                                              234216




                                              234216






























                                                  draft saved

                                                  draft discarded




















































                                                  Thanks for contributing an answer to Ask Ubuntu!


                                                  • Please be sure to answer the question. Provide details and share your research!

                                                  But avoid



                                                  • Asking for help, clarification, or responding to other answers.

                                                  • Making statements based on opinion; back them up with references or personal experience.


                                                  To learn more, see our tips on writing great answers.




                                                  draft saved


                                                  draft discarded














                                                  StackExchange.ready(
                                                  function () {
                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f788228%2fconky-does-not-use-instructed-font-with-cant-load-xft-font-error%23new-answer', 'question_page');
                                                  }
                                                  );

                                                  Post as a guest















                                                  Required, but never shown





















































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown

































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown







                                                  Popular posts from this blog

                                                  Human spaceflight

                                                  Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                                                  張江高科駅