[Solved] Determine font used to render a character with fontconfig?

Hey guys,
I was curious if there was a way using one of the fc-* fontconfig utilities (or another tool) to determine what font will render a specific glyph in the current configuration.
For example, if I wanted to know what font would render the '├' glyph when using the 'monospace' font. Obviously I can lookup what font is used for 'monospace' with '$ fc-match monospace', but this doesn't tell me if that font contains the '├' character, and if not, what font in the preferred chain does.
Last edited by EvanPurkhiser (2014-03-08 22:33:00)

This appears to be the closest answer!. You can search for a character and right click to find out what font is rendering it.

Similar Messages

  • Issues with using the output redirection character with newer NXOS versions?

    Has anyone seen any issues with using the output redirection character with newer NXOS versions?
    Am receiving "Error 0x40870004 while copying."
    Simply copying a file from bootflash to tftp is ok.
    This occurs for both 3CDaemon and Tftpd32 softwares.
    Have tried it on multiple switches - same issue.
    Any known bugs?
    thanks!
    The following is an example of bad (NXOS4.1.1b) and good (SANOS3.2.1a)
    MDS2# sho ver | inc system
      system:    version 4.1(1b)
      system image file is:    bootflash:///m9200-s2ek9-mz.4.1.1b.bin
      system compile time:     10/7/2008 13:00:00 [10/11/2008 09:52:55]
    MDS2# sh int br > tftp://10.73.54.194
    Trying to connect to tftp server......
    Connection to server Established. Copying Started.....
    TFTP put operation failed:Access violation
    Error 0x40870004 while copying tftp://10.73.54.194/
    MDS2# copy bootflash:cpu_logfile tftp://10.73.54.194
    Trying to connect to tftp server......
    Connection to server Established. Copying Started.....
    |
    TFTP put operation was successful
    MDS2#
    ck-ci9216-001# sho ver | inc system
      system:    version 3.2(1a)
      system image file is:    bootflash:/m9200-ek9-mz.3.2.1a.bin
      system compile time:     9/25/2007 18:00:00 [10/06/2007 06:46:51]
    ck-ci9216-001# sh int br > tftp://10.73.54.194
    Trying to connect to tftp server......
    |
    TFTP put operation was successful

    Please check with new version of TFTPD 32 server. The error may be due to older version of TFPT server, the new version available solved this error. Files are getting uploaded with no issues.
    1. Download tftpd32b.zip from:
    http://tftpd32.jounin.net/tftpd32_download.html
    2. Copy the tftpd32b.zip file into an empty directory and extract it.
    3. Copy the file you want to transver into the directory containing tftpd32.exe.
    4. Run tftpd32.exe from that directory. The "Base Directory" field should show the path to the directory containing the file you want to transfer.
    At this point, the tftpserver is ready to begin serving files. As devices request files, the main tftpd32 window will log the requests.
    Best Regards...

  • Determining and using the newline character.

    Hi All,
    I have a program that I am endeavouring to make completely portable. To this end I need to determine the system independent line seperator character. After looking at several other threads in this forum that deal with this issue, I have tried the following code:
    String nLine = System.getProperty("line.seperator");However this code only results in the String value "null"! Does anybody out there know why my nLine variable is null when it should in fact be the line seperator character? Any suggestions will be awesome.
    Thanks
    Davo

    line.separator
    not
    line.seperator

  • What's the base latin character font used in Khmer MN font?

    I accidentally changed English text to the Khmer MN font. I liked the way the text looked, but I know it's not an English font. What is the actual (or similar) font used for the Latin alphabet characters? It's especially necessary because I want to type an "é."

    Groovysoul wrote:
    Khmer MN is a font that comes with Lion, so I'd assume Apple would be the maker
    You can see who makes a font by doing Preview > Show Font Info in Fontbook.  Very, very few of the fonts in OS X are made by Apple.
    It should work OK in a PDF as long as the font is really embedded.  I think Adobe Reader can tell you what is embedded if you open it with that.

  • [SOLVED] Determining Bitmap Font [Terminus/2] Font Mappings

    I was wondering there was ageneral rule fo thumb to determine font mappings in say Terminus 2 or other bitmap fonts.
    To which escape sequences do the symbols correspond?
    http://archlinux.me/w0ng/tag/dwm/
    Last edited by wildfowl (2014-10-26 22:53:58)

    Ahh thanks. Had better luck with fontforge instead.

  • Cannot render special HTML character with Java

    I'm pretty sure this is a general Swing issue, please don't ignore this because I reference JavaHelp. When using JavaHelp and French as the displayed language, I'm having problems displaying the œ character (HTML entity &# 156;). Below I've included a sample HTML file, based on what my actual files looks like, which should demonstrate the problem. If I use a browser, or even Notepad, to open this file, the character displays just fine. However, in my JavaHelp popup (which uses Swings HTML renderer under the covers if I am not mistaken), all I get is a box. I've tried using the actual character and the HTML entity, but to no avail. Comments/suggestions/pointers would be greatly welcome!
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
            <style>
                li {padding-bottom: 6px; padding-top: 6px;}
                body {font-family: Helvetica, Arial, sans-serif; } td {font-size: smaller;}
            </style>
        </head>
        <body alink="#ff0000" bgcolor="#ffffff" link="#0000ff" text="#000000" vlink="#800080">
            &#156;
        </body>
    </html>Thanks,
    Jamie

    all I get is a boxSo JavaHelp is rendering it as a single character and not as the six characters &, #, 1, 5, 6, and semicolon. So far, so good. But it appears that the font JavaHelp is using is unable to render that character correctly, so you get a box.
    Can you control the fonts that JavaHelp uses? If so, try using a font that can render the &#156; character.
    PC&#178;

  • I have a MacBook Pro , Model Identifier MacBook Pro8,2 , MAC OX S 10.7.4 I noticed that if I open Final Cut Projects created on other/older models MacBook Pro Laptops or MacPro Desktops, the fonts used in the previously created FCP projects, change their

    I have a MacBook Pro , Model Identifier MacBook Pro8,2 , MAC OX S 10.7.4
    I noticed that if I open Final Cut Projects created on other/older models MacBook Pro Laptops or MacPro Desktops, the fonts used in the previously created FCP projects, change their font spacing! which distorts the look of the Text that was written, by oevrlapping on other things that were put & present on the screen.. Another similar probelm is that the Vector shaped used for example to highlight certain words or shapes, also change their position on the screen so that they no longer highlight exact things that we once used these vectors to highlight or outline... Anyone knows how to solve this problem please?? I made sure that the same fonts are available in the Library in both old and newer computers...
    thanks in advance..

    You might want to take your question to the FCP forum - if you copied all fonts to your Library>Fonts folder and restarted they should be recognized by all applications. I know that this works for Adobe products, anyway.
    Clinton

  • Fonts used in some text layers not available...

    I've been gettting the following message lately when opening Photoshop files at work: "Fonts used in some text layers are not available for activation. You will need to replace these fonts before the layers can be used for vector based output".
    But when I check my text layers, there are no indications that any fonts are missing. I double click on every text layer to see what font is being used and double check Suitcase Fusion to make sure it is activated.
    I'm using OSX Maverick 10.9.2. I'm using Suitcase Fusion 5 version 16.2.0. And I'm using Photoshop CC 14.2.1. It's more of an annoyance than anything, but would like to know why it keeps telling me fonts are not available when they are currently activated in Suitcase. Not sure if it's an Adobe issue or a Suitcase Fusion issue.
    Anyone have any ideas on this?
    Thanks!
    Steve

    DrStrik9, I opened up the file, clicked on each text layer and selected all to make sure there wasn't any character using a different font. There wasn't. I clicked on the font being used, tried changing it to a different font, then back to the font that was being used. I saved and closed the file, then reopened it, and that seemed to cure it for that file. Not an efficient way to go about it though.
    I then tried another file that was giving me the same error, clicked on each text layer, changed the font to a different one, then back to what was being used, saved, closed and reopened it, and still got the same message. So it didn't work for that one. I then tried changing the font to a system font, Times Bold true type, saved, closed, reopened, and got the message again. So not sure what is going on. The fonts used in the first file were DIN and DINEngschrift postscript font, which were loaded and active in Font Fusion.
    The 2nd file I tried was using Gotham Bold postscript font, which also was active in Font Fusion. I've run Font Doctor on the fonts and found no issues.
    Even though I'm getting the error message when I'm opening these files, none of the text layers have that Exclamation point indicating there is an issue with the layer, so it would seem the text layers are fine. Just really annoying to get that error every time I open the file.
    Another thing I tried is I created a new Photoshop file and just made some text layers using Gotham Bold. Saved, closed and reopened the file and did not get the message. So, I don't know why I would get it with one file and not another. Very confusing/frustrating. Any other ideas?
    Thanks in advance,
    Steve

  • CS2- How to get the fonts used in a document ?

    Hi,
    Can anyone tell how to find the the fonts used in the document directly without iterating through the text art used in the document.BCOZ if i iterate through each text frame or character my plugin works very slowly.I want to speed up the process of finding & replacing the fonts like wat we do manually in the "Type-> Find Font" menu thru my code.
    Please post ur comments on this .If there is no direct option to find &replace the fonts used in the document ,pls let me know the simplest logic of finding & replacing all occurances of a font in a doc so that my process of doing this should be faster.
    Thanks in advance.
    myRiaz

    As far as I know, there's no way to get a list of fonts in use in a document without iterating over the document and compiling a list by asking every piece of art.
    If you want to trigger 'Type > Find Font' there might be a way to invoke that using Actions (AIActionManager.h). I'm not sure if that would help or not though.
    This probably isn't very helpful depending on what you're doing, but I think this is meant to be handled by using character styles. That way you can change a style and update any related text instantly. Not much help though if you're just trying to write a S&R font plugin.

  • List fonts used in a document, search by font.

    Help! I cannot find a way to list, by name, of the fonts used (past tense) in a document. Like in the document properties: where the word and character count is.
    Example: The author used Arial, Arial Condensed and OCR A in her document. I would like to see a list of three font names. If I have (or don't have) those fonts is outside the scope of this request.
    Simply smashing the styles of a document and then restylng by hand is not working so well for me. Most of the documents used manual formatting instead of styles too!
    Second: I can search and replace text if it had a font applied to it, but I cannot specify the font to search on. ANY font will be match and changed to the 'replace' style. Any solution?
    Thanks!
    John Fields

    Interesting request and a bit of a programing challenge but here is what I have come up with. Try it on some of the documents that you need to deal with and let me know how it does.
    Sub FontsUsed 'Version 1 John Vigor 4/25/06
    'List fonts used in Writer document. Appears to work in normal text,
    'Sections, normal Tables, and Frames. Will currently crash on a Table
    'within a Table.
    oDoc = ThisComponent
    Dim fonts as Integer: Dim aFonts(1)
    oTC = oDoc.Text.createTextCursor
    oTC.goRight(1,true) : CurrentFont = oTC.charFontName
    fonts = fonts + 1 : aFonts(fonts) = CurrentFont
    REM Do "normal" text.
    partEnum = oDoc.Text.createEnumeration
    PartEnumerator(partEnum,CurrentFont,fonts,aFonts())
    REM Do Frames.
    oFrames = oDoc.getTextFrames
    If oFrames.Count > 0 then
    fonts = fonts + 1 : ReDim Preserve aFonts(fonts)
    aFonts(fonts) = "NEW FONTS, IF ANY, FOUND IN FRAMES:"
    For I = 0 to oFrames.Count - 1
      thisFrame = oFrames.getByIndex(I)
      partEnum = thisFrame.createEnumeration
      PartEnumerator(partEnum,CurrentFont,fonts,aFonts())
    Next
    EndIf
    REM Prepare list.
    For I = 1 to fonts
    s = s & aFonts(I) & Chr(10)
    Next
    iAns = MsgBox(s,4,"FONTS FOUND. Create font list document?")
    If iAns = 7 then
      End
    Else
      NewDoc = StarDesktop.loadComponentFromURL("private:factory/swriter"," blank",O,Array())
      oVC = NewDoc.CurrentController.getViewCursor
      oVC.String = s : oVC.collapseToEnd
    EndIf  
    End Sub
    Sub PartEnumerator(partEnum,CurrentFont,fonts,aFonts())
    While partEnum.hasMoreElements
    thisElement = partEnum.nextElement
    If thisElement.supportsService("com.sun.star.text.Paragraph") then
       portionEnum = thisElement.createEnumeration
       PortionEnumerator(portionEnum,CurrentFont,fonts,aFonts())
      ElseIf thisElement. supportsService ("com.sun.star.text.TextTab le") then
       Cols = thisElement.getColumns.Count - 1
       Rows = thisElement.getRows.Count - 1
       For C = 0 to Cols
        For R = 0 to Rows
         thisCell = thisElement.getCellByPosition(C,R)
         cellEnum = thisCell.createEnumeration
         While cellEnum.hasMoreElements
          thisPara = cellEnum.nextElement
          portionEnum = thisPara.createEnumeration
          PortionEnumerator(portionEnum,CurrentFont,fonts,aFonts())
         Wend
        Next
       Next
    EndIf
    Wend
    End Sub
    Sub PortionEnumerator(portionEnum,CurrentFont,fonts,aFonts())
    Dim found as Boolean
    While portionEnum.hasMoreElements
    thisPortion = portionEnum.nextElement
    thisFont = thisPortion.charFontName
    If thisFont <> CurrentFont then
      For I = 1 to fonts
       If aFonts(I) = thisFont then found = true: Exit For
      Next
      If found then
       CurrentFont = thisFont : found = false Else
       fonts = fonts + 1 : ReDim Preserve aFonts(fonts)
       aFonts(fonts) = thisFont : CurrentFont = thisFont
      EndIF
    EndIf
    Wend
    End Sub

  • Problem with adding Fonts using SE73

    I have a requirement to add new fonts to use in PDF printing.
    1) I have tried to add an MICR font using SE73 and I got the following message.
    Error
    Licensing: True Type Font must not be embedded.
    Question: Is there any restriction on type of fonts that can be added to SAP?
    2) I have tried a different font and added it successfully but I dont see the font in Font palette in PDF Layout.
    Question: Is there any additional configuration to be done for the font to be visible in PDF - Font palette?
    Please help.
    Thank you,
    Vasu

    Hi,
    Go to Character formate in your form.
    create a new char formate with enable BAR code AND
    you can give its type too.
    To Create a Bar code prefix:
    1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
    2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
    Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
    The place where you are using the field value use like this
    <C1> &itab-field& </C1>.
    You will get the field value in the form of barcode.
    Which barcode printer are you using ? Can you download this file and see.
    http://www.servopack.de/Files/HB/ZPLcommands.pdf.
    It will give an idea about barcode commands.
    Check this link:
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    Check this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
    Hope this link ll be useful..
    http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
    go through these links and cose u r previous threads,
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    smartform - barcode
    http://www.erpgenie.com/abap/smartforms.htm
    http://sap.ittoolbox.com/groups/technical-functional/sap-basis/print-barcode-with-smartform-634396
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/printing-barcode-733550
    Detailed information about SAP Barcodes
    A barcode solution consists of the following:
    a barcode printer
    a barcode reader
    a mobile data collection application/program
    A barcode label is a special symbology to represent human readable information such as a material number or batch number
    in machine readable format.
    There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
    You can print barcodes from SAP by modifying an existing output form.
    Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
    Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.

  • How to solve some fonts displayed as squares issue.

                             Hi,
              I try to stabilize a pdf generation config with specific parameters to allow exact render of text with any reader.
    1°| Configuration
    RIP
    Compatibility: pdf 1.5
    Compression: images only, zip
    Fonts: all integrated, no substitution.
    [PDFCreator only:
    ghostscript x64 9.06 (junction to a independant install as PDFCreator install 32b version)
    use windows fonts yes
    no fontmap files]
    PRINTER
    Substitution table: no substitution
    Smallest vector font size: 10px
    TrueType Fonts: Download as soft font
    Postscript: Optimize portability
    Download TrueType Fonts: Native TrueType
    Postscript level: 3
    Since this problem occurs for years now, i can mention 2 products and version concerned at now:
    -PDFCreator version 1.6.2 (always occured as long as i can remember).
    -novaPDF version 7.7 build 387
    Reader affected is Adobe READER X version 10.1.5.33 (option use local fonts on or off no effect)
    Reader not affected evince version 2.32.0.145
    System Windows 7 x64 Fr
    Browser Firefox 18.0.2
    2°| Issue
    You can encounter this problem even with testpage printing (Title replaced by squares) but it's not the most annoying case so i will present it true a webpage problem.
    For instance with css supressed:
    http://www.loc.gov/standards/sru/specs/transport.html#soap
    With Firefox configured with default font Times New Roman
    Then try to print to pdf with either PDFCreator or novaPDF, open with Adobe reader you get :
    Properties:
    open with evince you get:
    Properties:
    Strange!
    But now let's try to use a font from adobe reader Minion Pro.
    properties:
    with evince:
    properties:
    When saving to html file and open with LibreOffice Title appears to be verdana;helvetica;sans-serif.
    Export to pdf give this:
    (As export is not a printing i show this because long time ago i used makepdf if i remember which was not a printer.)
    Is True Type not supported ?
    Do i need to modify adobe reader config manually?
    I need new ideas for a solution as it's not possible to ask everyone to use evince... and Times New Roman is not the only font causing this issue.
    Thanks for reading.

    Actually, because the difference was intriguing, I found a little more time. Here is a discussion of the problem. I do not expect it to mean anything to you, but can be passed along to the maintainers of GhostScript and/or PDFCreator if you wish.
    The file was created by GPL GhostScript 9.06, application PDFCreator Version 1.6.2.
    In creating this PDF, the three TimesNewRoman fonts were embedded, as symbolic fonts
    with randomly assigned glyphs starting with index 0. No Encoding was used in the font
    dictionary. They contain a (1,0) and (3,0) cmap subtable.
    The TimesNewRoman font is set up almost correctly, with Flags 4 (symbolic), though 6 would be
    better prthaps (symbolic, serif)
    The TimesNewRoman,Bold and ,Italic fonts had Flags 34 and 98 respectively. Crucially, these
    do not set the symbol flag (values of 6 and 70 respectively would work as expected).
    ISO 32000-1 9.6.6.4 talks about how Encoding is managed for TrueType fonts. It identifies
    two cases which should "ensure predictable behaviour across all conforming readers":
    * A nonsymbolic font should specific MacRoman Encoding or WinAnsiEncoding.
    * A font not using standard encodings should not specify an Encoding; should set the
    Symbol Flag; and should contain a 1,0 subtable.
    Neither of these cases apply to the ,Bold or ,Italic case (but the presence of a Symbol
    flag would make them apply, and tests show this increases consistency).
    Hence, this is in the territory officially described by ISO 32000-1 as "dependent on
    the conforming reader" and not honouring "should follow certain guidelines to ensure
    predictable behaviour across all conforming readers".
    The behaviour of this PDF is not predictable, as has been seen (evince displays as expected
    by the user, if not by the specification, while Acrobat, Mac OS X Preview and Chrome do not).
    Recommend that the PDF creation module in GhostScript be modified to follow one of the
    two cases above, for consistent rendering.

  • [SOLVED] Changing font in urxvt, what's available?

    I'm trying to change the font used in urxvt. Currently my .Xresources has the line:
    URxvt.font: xft:terminus:size=9
    This appears to be working. However, I'm not sure how to find the correct name for other fonts. The wiki says to look in /usr/share/fonts/misc/fonts.alias Mine can be found here: http://pastebin.com/EPH3DdWT
    Apparently those full names work for bitmap fonts and the syntax I used above is for xft fonts.
    As an example, say I'd like to set my urxvt font to Oxygen Mono. How do I determine if that font uses bitmap or xft? If bitmap, how do I find the full name in fonts.alias? If xft, how do I find the name to be used? ("oxygen mono", "oxygen-mono", etc)
    Last edited by ioos (2012-04-18 21:47:11)

    If you installed xorg-fonts-100dpi or xorg-fonts-75dpi or the artwiz-fonts you would have quite a few pcf fonts, such as Courier and Lucida Typewriter.  Many show up when I list monospace fonts.  fc-list is used to list and filter the fonts that fontconfig knows.  If you want to know most of the options a particular font has, you use th '-v' option to fc-list.  '-f' is used to format and filter the information that is in the output.
    $ fc-list -f "%{file}\n" :spacing=100 | grep pcf ## monospace pcf font files
    /usr/share/fonts/100dpi/lutBS19.pcf.gz
    /usr/share/fonts/artwiz-fonts/smoothansi.pcf
    ...<cut>
    Try the difference between something like these two commands:
    $ fc-list :family=LucidaTypewriter:style=Sans ## then try...
    $ fc-list -v :family=LucidaTypewriter:style=Sans
    You should be able to figure out the different font properties by referencing the documentation.  A font does not have to include all (any?) of the font properties given in the fontconfig docs.
    Last edited by thisoldman (2012-04-18 01:34:26)

  • [solved] Pango font rendering issues

    I'm having issues with pango rendering of pcf fonts. I was trying to set up a new font for my awesome theme, but my choices are fairly limited because all the pcf fonts are rendered as some default font. So then I was going around googling the issue, and font that awesome renders fonts using pango. I then tried to use pango-view to view the pcf files, and it displayed the same default font. These fonts show up fine in xfontsel and they render properly in urxvt. In my googling I found someone on slackware was facing a similar issue back in 2010, but no solution was posted. Is this a known/common problem, and does anyone know a fix?
    Edit: I'm not sure if this matters, but I also have freetype2-infinality installed from the AUR.
    Last edited by HalfEmptyHero (2011-12-22 13:10:13)

    Wow, I can't believe it was that simple. I had read my fontsconfig rules, however I'm new playing with fonts so none of it really meant anything to me when I originally read it, and I simply changed a few of the default fonts.. Going back over it now, it makes a lot more sense. Thanks for the help.

  • Why are some fonts blank in my CS5 character panel?

    Hi,
    I'm wondering why some fonts arent visible in my character viewer. I am using Illustrator Version15.0.2 on a MacBook Pro running 10.9.1. I have included 2 screen shots below for a visual reference.
    AND
    Additionally, I'd like to understand how the fonts in the character viewer menu are organized. I know they are alphabetical, but what are the grey divider lines representing?
    Can I deactivate non-english language fonts so that this menu is less conjested with fonts I never use? I've used Illustrator for years and am finally getting around to asking this question. I can't seem to find a straight forward answer regarding which fonts are actually non-english. As a side note, I use Font Explorer X Pro to manage my fonts.
    Thanks for any insight into this.

    I cross referenced with Photoshop's character menu, and they are showing up there. I included screenshots from Photoshop below. It looks like they are all non-English character fonts. They are not fonts I installed, but one's that are housed in my Library/Fonts folder. I'm not sure if they have always been in there, as they may have been installed with my Mavericks upgrade. They definitly came with either OSX or Mavericks. I will send a few to you if you would still like me to.
    Best,
    Erin

Maybe you are looking for