X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 2 at size 11 could not be loaded












5















I am on Ubuntu 13.10, with R version 3.1.0 beta (2014-03-28 r65330) -- "Spring Dance" (64 bit).



It is a new install and when trying to plot I am getting above error message




Error in title(main = "Test", line = -1) :



X11 font -adobe-helvetica-%s-%s---%d-------*, face 2 at size 11 could not be loaded




This is happening with X11(type="Xlib")



I looked around a bit, but could only find quite old threads. Prof. Ripley replied to a similar issue in 2013 with




See ?X11 and the 'R Installation and Administration Manual'. You are dragging up ancient history (2002). The 'modern' X11 device (from 2007) uses cairographics and does not use X11 fonts. I suggest you take a look at how R was built and ensure that the cairo-based device is available. Further, for a long time most X11 installations have been from Xorg and not Xfree86, and do not generally have a config file.




That unfortunately doesn't help me, because I am using events:



setGraphicsEventHandlers(prompt="Click and drag to zoom, hit q to quit",
onMouseDown = dragmousedown,
onMouseUp = mouseup,
onKeybd = keydown)
eventEnv <- getGraphicsEventEnv()
getGraphicsEvent()


And those aren't supported on any other device. It is still working on my other machine, so I presume I just need to find fonts somewhere.



How do I install or generate those fonts on Ubuntu?










share|improve this question




















  • 1





    Just as a quick tip, I installed pretty much a gazillion fonts, only to realize that I needed to restart the computer as well - one of them fixed it. As an aside, maybe there is a way of loading new fonts without restart? That would be nice...

    – Cookie
    Apr 21 '14 at 7:41






  • 1





    xset fp rehash tells the X server to rescan the directories in its font path for newly installed fonts (if the font was added to a directory already listed in the font path, and mkfontdir was run to update the fonts.dir files to list it).

    – alanc
    May 31 '14 at 19:15











  • I followed @user3002067 's suggestion and then ran xset fp rehash and then mkfontdir after. The issue persisted for me. Then I rebooted my system as suggested by @Cookie and then things started working for me.

    – ohnoplus
    Nov 9 '18 at 23:13
















5















I am on Ubuntu 13.10, with R version 3.1.0 beta (2014-03-28 r65330) -- "Spring Dance" (64 bit).



It is a new install and when trying to plot I am getting above error message




Error in title(main = "Test", line = -1) :



X11 font -adobe-helvetica-%s-%s---%d-------*, face 2 at size 11 could not be loaded




This is happening with X11(type="Xlib")



I looked around a bit, but could only find quite old threads. Prof. Ripley replied to a similar issue in 2013 with




See ?X11 and the 'R Installation and Administration Manual'. You are dragging up ancient history (2002). The 'modern' X11 device (from 2007) uses cairographics and does not use X11 fonts. I suggest you take a look at how R was built and ensure that the cairo-based device is available. Further, for a long time most X11 installations have been from Xorg and not Xfree86, and do not generally have a config file.




That unfortunately doesn't help me, because I am using events:



setGraphicsEventHandlers(prompt="Click and drag to zoom, hit q to quit",
onMouseDown = dragmousedown,
onMouseUp = mouseup,
onKeybd = keydown)
eventEnv <- getGraphicsEventEnv()
getGraphicsEvent()


And those aren't supported on any other device. It is still working on my other machine, so I presume I just need to find fonts somewhere.



How do I install or generate those fonts on Ubuntu?










share|improve this question




















  • 1





    Just as a quick tip, I installed pretty much a gazillion fonts, only to realize that I needed to restart the computer as well - one of them fixed it. As an aside, maybe there is a way of loading new fonts without restart? That would be nice...

    – Cookie
    Apr 21 '14 at 7:41






  • 1





    xset fp rehash tells the X server to rescan the directories in its font path for newly installed fonts (if the font was added to a directory already listed in the font path, and mkfontdir was run to update the fonts.dir files to list it).

    – alanc
    May 31 '14 at 19:15











  • I followed @user3002067 's suggestion and then ran xset fp rehash and then mkfontdir after. The issue persisted for me. Then I rebooted my system as suggested by @Cookie and then things started working for me.

    – ohnoplus
    Nov 9 '18 at 23:13














5












5








5


4






I am on Ubuntu 13.10, with R version 3.1.0 beta (2014-03-28 r65330) -- "Spring Dance" (64 bit).



It is a new install and when trying to plot I am getting above error message




Error in title(main = "Test", line = -1) :



X11 font -adobe-helvetica-%s-%s---%d-------*, face 2 at size 11 could not be loaded




This is happening with X11(type="Xlib")



I looked around a bit, but could only find quite old threads. Prof. Ripley replied to a similar issue in 2013 with




See ?X11 and the 'R Installation and Administration Manual'. You are dragging up ancient history (2002). The 'modern' X11 device (from 2007) uses cairographics and does not use X11 fonts. I suggest you take a look at how R was built and ensure that the cairo-based device is available. Further, for a long time most X11 installations have been from Xorg and not Xfree86, and do not generally have a config file.




That unfortunately doesn't help me, because I am using events:



setGraphicsEventHandlers(prompt="Click and drag to zoom, hit q to quit",
onMouseDown = dragmousedown,
onMouseUp = mouseup,
onKeybd = keydown)
eventEnv <- getGraphicsEventEnv()
getGraphicsEvent()


And those aren't supported on any other device. It is still working on my other machine, so I presume I just need to find fonts somewhere.



How do I install or generate those fonts on Ubuntu?










share|improve this question
















I am on Ubuntu 13.10, with R version 3.1.0 beta (2014-03-28 r65330) -- "Spring Dance" (64 bit).



It is a new install and when trying to plot I am getting above error message




Error in title(main = "Test", line = -1) :



X11 font -adobe-helvetica-%s-%s---%d-------*, face 2 at size 11 could not be loaded




This is happening with X11(type="Xlib")



I looked around a bit, but could only find quite old threads. Prof. Ripley replied to a similar issue in 2013 with




See ?X11 and the 'R Installation and Administration Manual'. You are dragging up ancient history (2002). The 'modern' X11 device (from 2007) uses cairographics and does not use X11 fonts. I suggest you take a look at how R was built and ensure that the cairo-based device is available. Further, for a long time most X11 installations have been from Xorg and not Xfree86, and do not generally have a config file.




That unfortunately doesn't help me, because I am using events:



setGraphicsEventHandlers(prompt="Click and drag to zoom, hit q to quit",
onMouseDown = dragmousedown,
onMouseUp = mouseup,
onKeybd = keydown)
eventEnv <- getGraphicsEventEnv()
getGraphicsEvent()


And those aren't supported on any other device. It is still working on my other machine, so I presume I just need to find fonts somewhere.



How do I install or generate those fonts on Ubuntu?







xorg r






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 24 '14 at 1:21









amc

4,80462746




4,80462746










asked Apr 18 '14 at 9:49









CookieCookie

5361716




5361716








  • 1





    Just as a quick tip, I installed pretty much a gazillion fonts, only to realize that I needed to restart the computer as well - one of them fixed it. As an aside, maybe there is a way of loading new fonts without restart? That would be nice...

    – Cookie
    Apr 21 '14 at 7:41






  • 1





    xset fp rehash tells the X server to rescan the directories in its font path for newly installed fonts (if the font was added to a directory already listed in the font path, and mkfontdir was run to update the fonts.dir files to list it).

    – alanc
    May 31 '14 at 19:15











  • I followed @user3002067 's suggestion and then ran xset fp rehash and then mkfontdir after. The issue persisted for me. Then I rebooted my system as suggested by @Cookie and then things started working for me.

    – ohnoplus
    Nov 9 '18 at 23:13














  • 1





    Just as a quick tip, I installed pretty much a gazillion fonts, only to realize that I needed to restart the computer as well - one of them fixed it. As an aside, maybe there is a way of loading new fonts without restart? That would be nice...

    – Cookie
    Apr 21 '14 at 7:41






  • 1





    xset fp rehash tells the X server to rescan the directories in its font path for newly installed fonts (if the font was added to a directory already listed in the font path, and mkfontdir was run to update the fonts.dir files to list it).

    – alanc
    May 31 '14 at 19:15











  • I followed @user3002067 's suggestion and then ran xset fp rehash and then mkfontdir after. The issue persisted for me. Then I rebooted my system as suggested by @Cookie and then things started working for me.

    – ohnoplus
    Nov 9 '18 at 23:13








1




1





Just as a quick tip, I installed pretty much a gazillion fonts, only to realize that I needed to restart the computer as well - one of them fixed it. As an aside, maybe there is a way of loading new fonts without restart? That would be nice...

– Cookie
Apr 21 '14 at 7:41





Just as a quick tip, I installed pretty much a gazillion fonts, only to realize that I needed to restart the computer as well - one of them fixed it. As an aside, maybe there is a way of loading new fonts without restart? That would be nice...

– Cookie
Apr 21 '14 at 7:41




1




1





xset fp rehash tells the X server to rescan the directories in its font path for newly installed fonts (if the font was added to a directory already listed in the font path, and mkfontdir was run to update the fonts.dir files to list it).

– alanc
May 31 '14 at 19:15





xset fp rehash tells the X server to rescan the directories in its font path for newly installed fonts (if the font was added to a directory already listed in the font path, and mkfontdir was run to update the fonts.dir files to list it).

– alanc
May 31 '14 at 19:15













I followed @user3002067 's suggestion and then ran xset fp rehash and then mkfontdir after. The issue persisted for me. Then I rebooted my system as suggested by @Cookie and then things started working for me.

– ohnoplus
Nov 9 '18 at 23:13





I followed @user3002067 's suggestion and then ran xset fp rehash and then mkfontdir after. The issue persisted for me. Then I rebooted my system as suggested by @Cookie and then things started working for me.

– ohnoplus
Nov 9 '18 at 23:13










2 Answers
2






active

oldest

votes


















3














I got this same issue using R in Ubuntu 14.04 specifically with the GGALLY package and the GGPAIRS function. To recreate:



data(mtcars)
library(GGally)
mtcars_subset <- mtcars[,c(2:11)]
ggpairs(mtcars_subset)

Error:
Warning message:
Error in grid.Call.graphics(L_text, as.graphicsAnnot(x$label), x$x, x$y, : X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 1 at size 16 could not be loaded


To fix this loaded the following and rebooted Ubuntu:



sudo apt-get install t1-xfree86-nonfree ttf-xfree86-nonfree ttf-xfree86-nonfree-syriac xfonts-75dpi xfonts-100dpi





share|improve this answer































    0














    In ubuntu 18.04 the problem can appear again. It was enough, in my case to indicate the right bitmap.



    options(bitmapType="cairo")





    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%2f449578%2fx11-font-adobe-helvetica-s-s-d-face-2-at-size-11-could-no%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      3














      I got this same issue using R in Ubuntu 14.04 specifically with the GGALLY package and the GGPAIRS function. To recreate:



      data(mtcars)
      library(GGally)
      mtcars_subset <- mtcars[,c(2:11)]
      ggpairs(mtcars_subset)

      Error:
      Warning message:
      Error in grid.Call.graphics(L_text, as.graphicsAnnot(x$label), x$x, x$y, : X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 1 at size 16 could not be loaded


      To fix this loaded the following and rebooted Ubuntu:



      sudo apt-get install t1-xfree86-nonfree ttf-xfree86-nonfree ttf-xfree86-nonfree-syriac xfonts-75dpi xfonts-100dpi





      share|improve this answer




























        3














        I got this same issue using R in Ubuntu 14.04 specifically with the GGALLY package and the GGPAIRS function. To recreate:



        data(mtcars)
        library(GGally)
        mtcars_subset <- mtcars[,c(2:11)]
        ggpairs(mtcars_subset)

        Error:
        Warning message:
        Error in grid.Call.graphics(L_text, as.graphicsAnnot(x$label), x$x, x$y, : X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 1 at size 16 could not be loaded


        To fix this loaded the following and rebooted Ubuntu:



        sudo apt-get install t1-xfree86-nonfree ttf-xfree86-nonfree ttf-xfree86-nonfree-syriac xfonts-75dpi xfonts-100dpi





        share|improve this answer


























          3












          3








          3







          I got this same issue using R in Ubuntu 14.04 specifically with the GGALLY package and the GGPAIRS function. To recreate:



          data(mtcars)
          library(GGally)
          mtcars_subset <- mtcars[,c(2:11)]
          ggpairs(mtcars_subset)

          Error:
          Warning message:
          Error in grid.Call.graphics(L_text, as.graphicsAnnot(x$label), x$x, x$y, : X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 1 at size 16 could not be loaded


          To fix this loaded the following and rebooted Ubuntu:



          sudo apt-get install t1-xfree86-nonfree ttf-xfree86-nonfree ttf-xfree86-nonfree-syriac xfonts-75dpi xfonts-100dpi





          share|improve this answer













          I got this same issue using R in Ubuntu 14.04 specifically with the GGALLY package and the GGPAIRS function. To recreate:



          data(mtcars)
          library(GGally)
          mtcars_subset <- mtcars[,c(2:11)]
          ggpairs(mtcars_subset)

          Error:
          Warning message:
          Error in grid.Call.graphics(L_text, as.graphicsAnnot(x$label), x$x, x$y, : X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 1 at size 16 could not be loaded


          To fix this loaded the following and rebooted Ubuntu:



          sudo apt-get install t1-xfree86-nonfree ttf-xfree86-nonfree ttf-xfree86-nonfree-syriac xfonts-75dpi xfonts-100dpi






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 6 '15 at 12:28









          user3002067user3002067

          413




          413

























              0














              In ubuntu 18.04 the problem can appear again. It was enough, in my case to indicate the right bitmap.



              options(bitmapType="cairo")





              share|improve this answer




























                0














                In ubuntu 18.04 the problem can appear again. It was enough, in my case to indicate the right bitmap.



                options(bitmapType="cairo")





                share|improve this answer


























                  0












                  0








                  0







                  In ubuntu 18.04 the problem can appear again. It was enough, in my case to indicate the right bitmap.



                  options(bitmapType="cairo")





                  share|improve this answer













                  In ubuntu 18.04 the problem can appear again. It was enough, in my case to indicate the right bitmap.



                  options(bitmapType="cairo")






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 4 at 14:37









                  GariniGarini

                  1012




                  1012






























                      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%2f449578%2fx11-font-adobe-helvetica-s-s-d-face-2-at-size-11-could-no%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

                      How to change which sound is reproduced for terminal bell?

                      Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                      Can I use Tabulator js library in my java Spring + Thymeleaf project?