Find font file from font name on Linux












4














I have a font with the name Media Gothic. How can I find the file name of that font in Linux? I need to copy that file to another system. I've tried:



find /usr/share/fonts/ -name '*media*'


But this gives no results. gothic gives some other fonts. TTF is a binary format so I can't use grep.










share|improve this question





























    4














    I have a font with the name Media Gothic. How can I find the file name of that font in Linux? I need to copy that file to another system. I've tried:



    find /usr/share/fonts/ -name '*media*'


    But this gives no results. gothic gives some other fonts. TTF is a binary format so I can't use grep.










    share|improve this question



























      4












      4








      4







      I have a font with the name Media Gothic. How can I find the file name of that font in Linux? I need to copy that file to another system. I've tried:



      find /usr/share/fonts/ -name '*media*'


      But this gives no results. gothic gives some other fonts. TTF is a binary format so I can't use grep.










      share|improve this question















      I have a font with the name Media Gothic. How can I find the file name of that font in Linux? I need to copy that file to another system. I've tried:



      find /usr/share/fonts/ -name '*media*'


      But this gives no results. gothic gives some other fonts. TTF is a binary format so I can't use grep.







      find fonts search file-search






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 7 '14 at 12:35









      schaiba

      5,49912129




      5,49912129










      asked Apr 7 '14 at 10:09









      jcubic

      2,97462645




      2,97462645






















          2 Answers
          2






          active

          oldest

          votes


















          18














          Have you tried ?



          fc-list | grep -i "media"


          Also give a try to fc-scan, fc-match






          share|improve this answer

















          • 1




            Didn't know about fc-* commands. Thanks.
            – jcubic
            Apr 7 '14 at 11:22






          • 1




            How does this help locate the actual font file? The font file name might be (at best) a scrambled version of the actual font name.
            – nutty about natty
            Aug 11 '17 at 9:54





















          0














          fc-list FontName file



          where FontName is the exact font name found with



          fc-list | grep -i approximate-or-partial-font-name






          share|improve this answer





















          • This is exact answer as accepted one.
            – jcubic
            Dec 26 '18 at 9:40










          • On newer systems - yes, but on older ones fc-list withouth the file command does not show filenames for the fonts listed. And the file command could only be specified after a FontName.
            – Alexander Shcheblikin
            Dec 26 '18 at 15:30










          • You should mention that in answer, that on older system accepted answer don't show files names and you need to call fc-list again to get the filename.
            – jcubic
            Dec 27 '18 at 15:44











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          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: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f123511%2ffind-font-file-from-font-name-on-linux%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









          18














          Have you tried ?



          fc-list | grep -i "media"


          Also give a try to fc-scan, fc-match






          share|improve this answer

















          • 1




            Didn't know about fc-* commands. Thanks.
            – jcubic
            Apr 7 '14 at 11:22






          • 1




            How does this help locate the actual font file? The font file name might be (at best) a scrambled version of the actual font name.
            – nutty about natty
            Aug 11 '17 at 9:54


















          18














          Have you tried ?



          fc-list | grep -i "media"


          Also give a try to fc-scan, fc-match






          share|improve this answer

















          • 1




            Didn't know about fc-* commands. Thanks.
            – jcubic
            Apr 7 '14 at 11:22






          • 1




            How does this help locate the actual font file? The font file name might be (at best) a scrambled version of the actual font name.
            – nutty about natty
            Aug 11 '17 at 9:54
















          18












          18








          18






          Have you tried ?



          fc-list | grep -i "media"


          Also give a try to fc-scan, fc-match






          share|improve this answer












          Have you tried ?



          fc-list | grep -i "media"


          Also give a try to fc-scan, fc-match







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 7 '14 at 10:24









          SHW

          8,02033570




          8,02033570








          • 1




            Didn't know about fc-* commands. Thanks.
            – jcubic
            Apr 7 '14 at 11:22






          • 1




            How does this help locate the actual font file? The font file name might be (at best) a scrambled version of the actual font name.
            – nutty about natty
            Aug 11 '17 at 9:54
















          • 1




            Didn't know about fc-* commands. Thanks.
            – jcubic
            Apr 7 '14 at 11:22






          • 1




            How does this help locate the actual font file? The font file name might be (at best) a scrambled version of the actual font name.
            – nutty about natty
            Aug 11 '17 at 9:54










          1




          1




          Didn't know about fc-* commands. Thanks.
          – jcubic
          Apr 7 '14 at 11:22




          Didn't know about fc-* commands. Thanks.
          – jcubic
          Apr 7 '14 at 11:22




          1




          1




          How does this help locate the actual font file? The font file name might be (at best) a scrambled version of the actual font name.
          – nutty about natty
          Aug 11 '17 at 9:54






          How does this help locate the actual font file? The font file name might be (at best) a scrambled version of the actual font name.
          – nutty about natty
          Aug 11 '17 at 9:54















          0














          fc-list FontName file



          where FontName is the exact font name found with



          fc-list | grep -i approximate-or-partial-font-name






          share|improve this answer





















          • This is exact answer as accepted one.
            – jcubic
            Dec 26 '18 at 9:40










          • On newer systems - yes, but on older ones fc-list withouth the file command does not show filenames for the fonts listed. And the file command could only be specified after a FontName.
            – Alexander Shcheblikin
            Dec 26 '18 at 15:30










          • You should mention that in answer, that on older system accepted answer don't show files names and you need to call fc-list again to get the filename.
            – jcubic
            Dec 27 '18 at 15:44
















          0














          fc-list FontName file



          where FontName is the exact font name found with



          fc-list | grep -i approximate-or-partial-font-name






          share|improve this answer





















          • This is exact answer as accepted one.
            – jcubic
            Dec 26 '18 at 9:40










          • On newer systems - yes, but on older ones fc-list withouth the file command does not show filenames for the fonts listed. And the file command could only be specified after a FontName.
            – Alexander Shcheblikin
            Dec 26 '18 at 15:30










          • You should mention that in answer, that on older system accepted answer don't show files names and you need to call fc-list again to get the filename.
            – jcubic
            Dec 27 '18 at 15:44














          0












          0








          0






          fc-list FontName file



          where FontName is the exact font name found with



          fc-list | grep -i approximate-or-partial-font-name






          share|improve this answer












          fc-list FontName file



          where FontName is the exact font name found with



          fc-list | grep -i approximate-or-partial-font-name







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 24 '18 at 23:34









          Alexander Shcheblikin

          9201712




          9201712












          • This is exact answer as accepted one.
            – jcubic
            Dec 26 '18 at 9:40










          • On newer systems - yes, but on older ones fc-list withouth the file command does not show filenames for the fonts listed. And the file command could only be specified after a FontName.
            – Alexander Shcheblikin
            Dec 26 '18 at 15:30










          • You should mention that in answer, that on older system accepted answer don't show files names and you need to call fc-list again to get the filename.
            – jcubic
            Dec 27 '18 at 15:44


















          • This is exact answer as accepted one.
            – jcubic
            Dec 26 '18 at 9:40










          • On newer systems - yes, but on older ones fc-list withouth the file command does not show filenames for the fonts listed. And the file command could only be specified after a FontName.
            – Alexander Shcheblikin
            Dec 26 '18 at 15:30










          • You should mention that in answer, that on older system accepted answer don't show files names and you need to call fc-list again to get the filename.
            – jcubic
            Dec 27 '18 at 15:44
















          This is exact answer as accepted one.
          – jcubic
          Dec 26 '18 at 9:40




          This is exact answer as accepted one.
          – jcubic
          Dec 26 '18 at 9:40












          On newer systems - yes, but on older ones fc-list withouth the file command does not show filenames for the fonts listed. And the file command could only be specified after a FontName.
          – Alexander Shcheblikin
          Dec 26 '18 at 15:30




          On newer systems - yes, but on older ones fc-list withouth the file command does not show filenames for the fonts listed. And the file command could only be specified after a FontName.
          – Alexander Shcheblikin
          Dec 26 '18 at 15:30












          You should mention that in answer, that on older system accepted answer don't show files names and you need to call fc-list again to get the filename.
          – jcubic
          Dec 27 '18 at 15:44




          You should mention that in answer, that on older system accepted answer don't show files names and you need to call fc-list again to get the filename.
          – jcubic
          Dec 27 '18 at 15:44


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • 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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2funix.stackexchange.com%2fquestions%2f123511%2ffind-font-file-from-font-name-on-linux%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

          Morgemoulin

          Scott Moir

          Souastre