[Solved] Substituting an unknown font in a pdf

Hello all,
I just downloaded a pdf that has some fonts which are not included in my font selection. evince tells me that their names are "CourierNewPSMT" and  "CourierNewPS-BoldMT". Unfortunately, the font manager seems to think that it is a good idea to substitute "Liberation Mono" (a monospace font!). I think that a pdf containing only monospace fonts is rather annoying, so I would like to substitute "Liberation Sans" instead. To this end I created a file "~/.config/font-manager/local.conf" containing
the following xml code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<test qual="any" name="family">
<string>CourierNewPSMT</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Liberation Sans</string>
</edit>
</match>
</fontconfig>
I restarted evince, I noticed that the file is read (evince complains if the syntax is wrong), but unfortunately the substitution remains the same.
Does anyone know how to correctly substitute fonts using font-manager?
Last edited by x2b (2013-09-03 14:32:15)

Well I tried this:
<match>
<test name="family"><string>CourierNewPSMT</string></test>
<edit mode="assign" name="family" binding="strong">
<string>Liberation Sans</string>
</edit>
</match>
But the font is still subsituted by "Liberation Mono". I am unsure whether this night not be a problem specific to evince: If I type in
fc-match "CourierNewPSMT"
on a terminal then the response is
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"

Similar Messages

  • Fixing fonts in a PDF file?

    Mac OSX 10.6.7, Indesign CS5.
    This may be more of an Acrobat question, but here goes. I've got some huge PDF files containing musical scores, over 250 pages, that I want to place into Indesign. These were generated by a Windows program (Sibelius, if that matters). When I attempt to place the PDF file (either a page at a time or using the multi-page PDF script), I get a dialog for each page saying that fonts are missing -- Times-Italic, Times-Roman, Times-Bold. The problem is that I've got already got Times installed (Mac OSX contains a Times font in the system that FontExplorer won't let me deactivate.) Investigating the PDF file, the only embedded fonts are the ones used for musical symbols. The Times TrueType fonts are not embedded (and appear strange onscreen, probably I'm getting a substitute Adobe Serif font), and obviously neither OSX nor Indesign recognize them as the same as the fonts open in the System. FontExplorer, probably wisely, doesn't want me to open any other version of Times while there's already a set in the system library.
    So, is there any way to tell Acrobat to use my Times fonts in this file instead of the non-existant Windows fonts? This is not a continuous text file, so exporting as RTF or something will not work, and I'd rather not save as tiff or jpeg because that's just silly with a file this big and graphically-intensive.
    Thanks for any help...

    You can safely removed the system times and helvetica.
    http://www.jklstudios.com/misc/osxfonts.html
    If you use iCal, Mail and a few other Apple programs that use badges on the dock icon you will get a substitute font on the icon, but having another helvetica will fix that. You need 1 Helvetica of any type or Photoshop will not launch.
    The only fonts you NEED in OS X are Lucida Grand (used in menus), Last Resort, and Keyboard. The rest can be deleted. Apple says you have to keep Kana, but if you aren't working in any Asian languages you can remove it without system instability. To be safe and follow Apple's guidelines you can keep it.
    http://support.apple.com/kb/ht1642

  • Missing Fonts from Imported PDFs

    I have a document that has several PDF documents "Placed" in it.  When I go to print, it tells me that I have missing fonts.
    From Find Font, I can see the missing fonts and what PDF they came from.  Only, Find Font won't let me substitute it.
    I can't change the font on the PDF either since it was not made by my department.   I've tried Placing with and without a Frame.  Tried embedded and linked.
    Computer and Program Info
    Windows XP
    InDesign CS3 v 5.0.4
    Program is on my computer / documents saved to server
    User status only - if any updates come along, I have to have IT log in to apply them.

    >
    >"You have a larger problem though. Your organization needs to be trained in the proper way to prepare documents for the intended purposes. If those >purposes include going to print, you need to either have access to the original files or the people making the PDFs MUST be trained to embed fonts."
    >
    I totally agree.  I'd be a lot less stressed if that's how things were done here.  We are a State University who's funding suddenly got cut.  Work study students are cheap (though not as cheap as fixing up any messes they make).  It's also cheaper to hire people who don't have complete training.   Every program I use, I've learned on my own.  I'm at least smart enough to ask questions and read the manual.  When training that my employers can afford (i.e., free) comes up, I attend.  The only saving grace of Aspergers -  I  learn programs (and programming) quickly - maybe not as efficiently as  you - but better than those around me.  I at least knew about embedding  fonts, linking graphics and packaging (my old days on Mac OS7 with PageMaker and Photoshop)
    And at least I can read instructions.   "Place missing fonts in the Fonts Folder, which is located in the InDesign Application Folder." - Adobe Manual
    I just looked.  The folder is empty. And I gave them a print out of the instructions.
    As  for the Plug-in I asked to have installed "Missing Fonts Loader", they  just dumped the plug-in into the Plug-in folder and didn't bother to  read the "how to install" instructions.  IT must have sent a work study  student.  Every time one touches my computer, something goes wrong or  missing.  Once they even installed the same program twice - 1 per  partition.
    Thank goodness the 'work around' did actually  work.  I'll will be working on fixing the problem the correct way, but I  have to has this project ready now - not months from now.

  • Change font in a PDF document

    Hi there!
    I would like to change the font on a PDF document 'cause I have to take out some parts of it (copy into a .doc or similar)
    The problem is when I do it, the original font is not recognized by text processor (stranges symbols appear).
    I´m trying to change the font in Adobe Acrobat Pro, but I can´t edit It; the programm says that (not exactly, ´cause its in Spanish)
    "The font change has not be done because the chosen font and the document´s fonts codification are different and It cant be solved."
    Clicking on pdf´s properties, I see these fonts:
    R11
    R277
    R677
    All them are "personalize" codification and type 3.
    I hope some in this forum could help me, ´cause I really need to extract some text of this PDF for work stuff.
    Thank you, and sorry about my bad english...

    I see where you can see fonts in Acrobat 9 Pro under Document Properties.  But the poster was trying to help guide you in the right direction.  Don't be malicious towards people who are here to HELP you.
    try reading this document:
    http://ballade.cs.ucla.edu/~kohcc/sigdacdrom/instruct/fonts.html
    and especially this one from adobe's knowledgebase:
    http://kb2.adobe.com/cps/328/328509.html
    hope that helps.
    -markerline

  • How to extract Chinese text from font embedded text PDF?

    This is actually font embedded text PDF (Used: type 1 fonts & custom encoding) and not scanned PDF, however I am unable to extract the "Chinese language" text properly and found only the garbled text when "Copy & Paste" (or save as RTF). Kindly refer the sample PDF attached for your reference.
    Kindly advise how could I solve this problem.
    Thanks in advance for your better solution.

    As I was unable to upload the sample page PDF in my original thread, I have shared now in the following path. Kindly look into this and guide me how to extract the chinese text as UNICODE text.
    Downloading: Chinese_Text_Extraction.pdf - Uploadingit

  • Times font in Adobe PDF

    Hallo Framers,
    Using Frame 7.1, Windows XP.
    I use the Adobe PDF driver in Frame with the SetPrint utility. My problem is that our Style Guide demands the Times font and Adobe PDF converts this to Times New Roman.
    My colleaguse use a local postscript printer which does have Times, but I get errors using this (IT have so far been unable to mend it).
    Can I persuade Adobe PDF to accept the Times font? If not, it seems that "Frame best practice" (use Adobe PDF) is incompatible with our style guide (use Times). And obviously the style guide takes priority.
    aTdHvAaNnKcSe (thanks in advance)
    --- Derek

    I'm unsure that there's a significant difference to the reader between
    Times and Times New, but the problem is that your colleagues are using
    the fonts ON THE PRINTER, not on their computers. Unless the printer
    manufacturer provided the fonts on a CD to install them on the
    computer, it's unlikely that those fonts are actually being
    incorporated in your co-worker's PDFs. And if they are, it's highly
    unlikely (but possible) that those fonts are licensed for inclusion in
    a PDF -- if you're concerned about the legality of that, you should
    check the actual PDFs with Acrobat's preflight tool.
    If I were you, I'd buy a legal copy of Times, or simply ask the
    keepers of the style guide if Times New can be substituted if your
    system doesn't have Times.
    Art
    Art Campbell
                  [email protected]
      "... In my opinion, there's nothing in this world beats a '52
    Vincent and a redheaded girl." -- Richard Thompson
                                                          No disclaimers apply.
                                                                   DoD 358

  • FOP: unknown font ... problems whith multiple threads

    I know that FOP (0.20.5) is not fully threadsafe, so I followed the suggested actions to minimze problems and even serialized the core FOP processing in my report threads:
    /** Semaphore to synchronize FOP processing. */
    static private final Object fopSerializer = new Object();
    private File createPDF(...) {
        synchronized (fopSerializer) {
    }so each concurrent thread that wants to create a PDF via FOP should be serialized and therefore, only 1 thread is using FOP at a time. However, if I run lots of those threads, sometimes I still get those "unknown font ..." error message once in a while that I don't get when running all such threads in sequence.

    Please try your test with latest ODP.NET patch 9202100.
    ODP.NET 9202100 patch is available

  • Preview is not rendering fonts well in PDFs

    Hi,
    For some reason Preview is not rendering fonts well in PDFs.  I have created high quality PDFs using two applications (Illustrator CS5 and Numbers '09) and in both cases the fonts are not rendering correctly in Preview.  They generally look much less sharp.  I am attaching screenshots below, with the original image first and then the PDF in Preview.
    When I look at the same PDFs in Acrobat Pro the fonts look fine, so I am presuming that the issue is with Preview.  Does anyone have any idea what might be going on?
    Thanks,
    Nick

    It looks like, at least in the Navigation menu, that your using Palatino font, which isn't a web safe font. So Explorer is probably substituting another font when it finds fonts not installed on the viewers computer.
    You may be using the default font in a particular iWeb theme. These aren't necessarily web safe fonts.
    For your pages to look better on most computers, change all your fonts to web safe fonts which you can find in the "font inspector window" in iWeb. (there is a "font" button on the bottom edge of the main iWeb window) There, you will find different categories of fonts, you want to use any of the fonts listed under "Web" group of fonts.
    David

  • Rename embedded fonts in a .pdf file

    Is it is possible to rename the embedded fonts of a .pdf file?

    You can safely removed the system times and helvetica.
    http://www.jklstudios.com/misc/osxfonts.html
    If you use iCal, Mail and a few other Apple programs that use badges on the dock icon you will get a substitute font on the icon, but having another helvetica will fix that. You need 1 Helvetica of any type or Photoshop will not launch.
    The only fonts you NEED in OS X are Lucida Grand (used in menus), Last Resort, and Keyboard. The rest can be deleted. Apple says you have to keep Kana, but if you aren't working in any Asian languages you can remove it without system instability. To be safe and follow Apple's guidelines you can keep it.
    http://support.apple.com/kb/ht1642

  • Linux - Turkish font  - RTF working, PDF replaced with ?

    Hi All,
    Im back to trying to get my application working on Linux again, and have arrived at the next bump in the road.
    Versions:
    CR4E v2.0.4.r825
    Java 1.6.0_13
    Oracle Enterprise Linux 5
    Background. Originally develeoped and tested on Windows, and got everything working 100%.
    We then moved the App to a Linux enviroment.
    First problem I came across was directory referencing, and case sensitivity, which I managed to solve.
    We then had issues where all fonts in the PDF outputs were shown as LucidaSans. This was solved by following the
    documentation found on [http://corefonts.sourceforge.net/]
    This allowed us to correctly output the TimesNewRoman font.
    Everything was going well until we needed to display Turkish font. On our Windows test enviroment everything is working
    perfectly, on the Linux, not so much.
    The way the Turkish font is used on the report is I developed a UFL which receives numbers and then looks up certain codes
    in a properties file, which contains the unicode representation of the Turkish characters. These are then interpreted by
    Java and a String is formatted and returned to the Report.
    If I look in my logs I get the following:
    com.crystaldecisions.reports.formulas.k.a(SourceFile:4554) - Function 'numbers2words' returned: s(beu015Fyu00FCz doksan TL  )
    So we can see that the correct characters are returned. ( ş )
    What I found out that if I tried exporting the Report as a PDF the text returned gets converted to  -  be?yu00FCz doksan TL
    The Document Properties of the PDF produce on Linux lists the fonts as
    DejaVuLGSans
      Type: TrueType
      Encoding: Ansi
      Actual Font: Adobe Sans MM
      Actual Font Type: Type 1
    TimesNewRoman
      Type: TrueType
      Encoding: Ansi
      Actual Font: TimesNewRomanPSMT
      Actual Font Type: TrueType
    Yet Windows version is as follows
    TimesNewRoman(Embedded Subset)
      Type: TrueType
      Encoding: Built-in
    TimesNewRomanBold(Embedded Subset)
      Type: TrueType
      Encoding: Built-in
    BUT if I export to a RTF document, all font looks perfect, on both Windows and Linux.
    RTF code looks something like this if this helps anyone
    {\posx260\posy9866\absw5518\absh-1919 \sl240\slmult1\par\fs17\f1 be\uc1\u351\'3Fy\u252\'3Fz doksan TL  \par\par\par}
    Any ideas on what I need to do or what I have not done, I will take any sugesstions. Also will give additional info if required.
    Thanks Darren

    Thanks Ted,
    That did the trick.
    Although I must say that I find it strange that originally we had no TimesNewRoman fonts on the Linux box,
    so we setup the msttcorefonts package as per [http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec]
    This then allowed us to print TimesNewRoman font on our PDF, but we still had no Turkish characters.
    So by placing these TTF files into the Java /lib/fonts directory and amending the fonts.dir file we all of a sudden had the Turkish characters.
    It almost seems that applying the fonts the first time only half solved our problems, and then once we made them avaliable in
    the Java lib/fonts area it solved the UFL issue.
    Anyways, its working now so we all happy.
    Cheers
    Darren

  • How to embed the needed fonts in a pdf file

    Dear Sir/Mam,
    We had purchased licenced version of adobe acrobat x pro
    We are facing issues while embedding the font in the pdf file
    Please find the below mentioned requirement
    Requirement:
    We have a pdf file (template) with some static images and static text in it
    We need to populate dynamic data in the pdf file for this we may use text boxes
    We need to set the font name for the text box and embed that font in the pdf template (Eg:Font to be used in textboxes is "RotisSansSerif-Bold")
    Queries
    Please let us know how to embed the needed fonts in the pdf file?
    Once user exports the pdf file, even if user doesnot have the fonts installed in his system the text need to be displayed in the same fonts,how to acheive this?Eg:if we define "RotisSansSerif-Bold" as font in the textboxes,after exporting the data the text need to be in the same font.
    Note:
    Fonts will only installed in the application server and not in the client system
    The mentioned requirement need to work on below mentioned specifications
    OS:Windiows-XP,  Browser:IE
    OS:Mac osx, Browser:Safari
    Regards,
    S.N.Prasad

    There is a similar post just a few away from yours. I will suggest what I would try. Open your job settings file (press or print preferred to get all fonts) and then select the properties and the font tab. At your font to the always embed list and you will likely need to uncheck the subset box. Then save your job settings (give it a name that is meaningful to you, you can not use the settings file you started with as they are read only and I do not recommend changing that). Maybe that will do the job. Of course that is for the creation of the PDF, I forgot you were talking about a form. You might check the form field properties, but I suspect you have already tried that. Guess I don't play with forms enough. Others may be by to answer.

  • How to embed font into generated PDF?

    Hi,
    I have an issue with cyrillic fonts in PDF-file, generated from smartform using the following mechanism:
    1. Run FM for smartform with ==> getotf = 'X'
    2. Perform CONVERT_OTF retrieving result into a XSTRING.
    3. Converting xstring content into a table using "cl_document_bcs=>xstring_to_solix).
    4. Creating mail to an external internet user with attached pdf ==> using "cl_document_bcs=>create_document..."
    Smartform contains cyrillic content, based on HELVCYR (Helvetica cyrillic) font. Application server is based on Windows.
    Everything worked well (for months!) for allmost all of the clients of our customer. Of course, some of clients have different OS-es (such as Linux, Mac OS, etc.), and then the problem starts - they doens't view properly the cyrillic content. English content (even numbers, etc.) are properly displayed. We found what fonts are used in the PDF, but my questions are:
    1. Is it possible to embed the font into generated PDF-content?
    2. If no, is it possible to generate PDF-content non-selectable (i.e. in some image mode) ?
    If yes, how to do this?
    Or is there any other way to workarround this issue - to be able to display mail with attached PDF-content with cyrillic on different OS-es? It would be better if it is possible without calling external converter...
    Any help would be highly appreciated.
    Thanks in advance.
    Regards,
    Ivaylo Mutafchiev

    Hello Ivaylo Mutafchiev,
                                           There is no way we can control the fonts in the created PDF / while creating the PDF using the class cl_document_bcs in your PDF creation logic.
    You can try some other approach of creating PDF from the Smartforms OTF stream data .
    Try using the follosing FM for the PDF creation and sending email:
    CONVERT_OTF_2_PDF
    CONVERT_OTF_AND_MAIL
    SO_OBJECT_SEND
    CONVERT_OTF_AND_MAIL_NEW (Try this but this FM still uses  the class that you are using currently. But give it a try and see the results)
    Hope this answers your question.
    Thanks,
    Greetson

  • Change Font Size with PDF attachment  via e--mail

    Hi experts,
    I want to send mail with PDF attachment . Now the attachment is ok but only the font size in PDF is a little small.
    Is that possible to Change the font size of PDF
    Below is my code:
    first the data comes from an internal table, then changed to an ABAP Pool.
    * Create a new spool from the data in gt_data_pdf
      new-page print on
      destination c_local               "<<== my printer
      cover text text-027               "<<== Title or Spool req. name
      list name space
      list dataset space
      immediately space                 " X means print now
      keep in spool c_checked           " X means keep spool
      new list identification c_checked
      line-size 255
      line-count 65
      no dialog .
      loop at gt_data_pdf.
        write: / gt_data_pdf-line.
      endloop.
      new-page print off.
      lv_spoolid = lv_spdel-rqident = sy-spono.
      lv_spdel-sys = sy-sysid.
    *Convert ABAP Spool to PDF
      call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
        exporting
          src_spoolid   = lv_spoolid
          no_dialog     = c_checked
        importing
          pdf_bytecount = lv_pdf_fsize
        tables
          pdf           = lt_pdf_table
        exceptions
          others        = 0.
    call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        exporting
          document_data              = lv_doc_chng
          put_in_outbox              = space
          commit_work                = c_checked
        tables
          packing_list               = lt_objpack
          object_header              = lt_objhead
          contents_bin               = lt_objbin
          contents_txt               = lt_objtxt
          receivers                  = lt_reclist
        exceptions
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          others                     = 99.
    Anyone could help me?
    Thanks a lot.
    Sincerely
    Julie

    Hi,
    we don´t have many options for setting the font type and size in an ABAP list. One option is that you print the output using either SmartForms or AdobeForms, where you can control font type as well as size. This one requires additional work.
    Another option is to use the instruction Print-Control:
    NEW-PAGE PRINT ON.
    PRINT-CONTROL FONT 1 SIZE 1 LPI 6 CPI 10.
    WRITE: /10   'FONT 1 size 1 LPI 6 cpi 10'.
    SKIP.
    PRINT-CONTROL FONT 1 SIZE 5 LPI 6 CPI 5.
    WRITE: /10   'FONT 1 size 5 LPI 6 cpi 5'.
    SKIP.
    PRINT-CONTROL FONT 2 SIZE 5 LPI 6 CPI 10.
    WRITE: /10   'FONT 2 size 5 LPI 6 cpi 10'.
    SKIP.
    NEW-PAGE PRINT OFF.

  • Unknown font error in Adobe reader

    Hi Team,
    We have developed a PDF form (interactive form) using Adobe Live Cycle Designer ES 8.2
    When we open the form using Adobe Reader 7 or later, we are getting a pop up stating - "Adobe Reader has found component 'Chinese traditional Fonts' and its size is 7.88 MB. Do you want to proceed with the download of this component?".
    Apparently, we did not use any chinese fonts on our PDF form and the reason behind this error is still clueless.
    Our main restriction in this case is the end users count for this form is more and they do not have permisiion to dowload the Chinese component. Kindly address the scenario / clarify our questions.
    1. Is there any way to locate the chinese font used in the form (if any) - We have tried Preflight option under Adobe Acrobat to genrate a font report and that did not help.
    2. Any alternate way to re design the form to avoid the chinese font inclusion
    3. Any particular property of fields to be checked for the chinese character inclusion - We have already treid the Form Propoerties -> Fonts under Adobe Acrobat, under which all the fonts used were ANSI encoded.
    If required we would be able to share the PDF form, please let us know the mode of sharing for the same.
    Looking forward to hear a helpful solution.
    Note: The error pop up did not come when opened with Adober reader versions X & later.
    Cheers,  Kavi

    yes i have the latest version, however I notes somthing in document properties see the following :
    when i open document in xp this is the properties
    and when i open it in windows 7, i got this:
    note that arabic transparent-bold, actual font type :Unkown??!!!! why ?

  • Exception thrown while processing pdf file with composite fonts using adobe pdf library (v 9.1 )

    Hi All,
    I have an issue with processing composite fonts with adobe pdf library (v 9.1 ).
    While processing a pdf file having composite fonts, the pdf library is throwing an exception.
    The api which throwed exception is "PDPageAcquirePDEContent()". In my code i am calling PDDocGetNumPages(), PDDocAcquirePage() before this api is called, but all those functions suceeded. In the HANDLER, using the ASGetErrorString(), i got this exception error as  "The encoding (CMap) specified by a font is missing."
    Now coming to the input file (which is also attached), this document have three different composite fonts ( details are given below )
    Font Name : TicketBold, Bold(Embedded)
    Font Type : Trueype (CID)
    Encoding : Identity-H
    Font Name : Times-Roman (Embedded)
    Font Type : Type 1 (CID)
    Encoding : Identity-H
    Font Name : TimesNewRomanPSMT (embedded)
    Font Type : TrueType(CID)
    Encoding: Identity-H
    If i convert all the composite fonts to outline using pitstop before processing, it works fine.
    So my question is that whether pdf library doesnt support composite fonts (which i dont think so ) or i need to do a special handling for these kinds of fonts in my application ( which i strongly belive ). If its the latter case, please let me know how to handle it in my application.
    thanks in advance
    best regards
    ~jafeel

    Hi Leonard,
    Thanks for your reply. May i ask you which sample of the PDF Library you used to test my scenario.
    One question i would like to put to you beofre going for filing a formal issue to Adobe will be does this issue has anything to do with the initialization of the pdf library?
    What i meant is that when we call the PDFLInit() we pass a PDFLDataRec structure which is initialized by various path to font folders, cmap folders and unicode folders. Whether if i miss any of these folders will it cause this issue???
    thanks again
    regards
    ~jafeel

Maybe you are looking for