Type1 font missing glyph width from /Widths array

Hi everyone
I am trying to calculate character width in order to show highlighted search results in a PDF document. The problem I have faced is that the /Widths array I am depending on has a portion of its values equal to 0. The values substituted with zeros are the ones that are used in the text. This is probably related to embedded font subsets, but I am not sure at the moment. What are the actions that should be taken in such a situation? See the structure of the mentioned PDF in a screenshot below:
Thank you in advance for your time.

Yes, writing a 0 into the width for a character that has been removed from a subset is a somewhat-common operation.
I am surprised that you are finding glyphs that are actually being used in the content stream with 0 widths.

Similar Messages

  • Fonts missing on export from Catalyst CS5

    I've created a product demonstration in Catalyst CS5, and one of my slides is an imported SWF.  The swf looks perfect inside of catalyst's library preview, however, when I publish or preview (f4) the movie the fonts in the embedded swf are wrong - it defaults to some generic sarif font.
    Anyone experienced this problem?  Adobe?  Suggestions?

    Never Mind.  I figured it out.  When exporting a swf from Flash CS5 you have to go into the ActionScript 3 settings (from the Publish Settings screen) and at the bottom under "Runtime Shared Library Settings" select "Merged into Code" for Default Linkage.  That embeds everything in the swf, and it plays perfectly when rendered from Catalyst.
    Hope that helps somebody, because it was driving me crazy!!!! 

  • Imageicon created from byte array gives -1 height and -1 width...

    Hi,
    when I am trying to create an imageicon object from byte arrays the length and width of the object are coming to be -1.So I am unable to resize the image..
    This is happening for only few images, most of them are working fine and I can resize it...
    What possibly could be wrong??
    ImageIcon imageIcon = new ImageIcon(pImageData) where pImageData is bytearray..
    but I am getting imageIcon.getIconWidth()=-1
    and
    imageIcon.getIconHeight()=-1
    Can anyone help???

    es5f2000 wrote:
    I'm not sure if this is related, but I believe that images which are not currently being rendered return -1, -1 as their size.It is not even correct, so I'm confident it is not related.
    import java.awt.Image;
    import javax.swing.ImageIcon;
    import javax.imageio.ImageIO;
    import java.net.URL;
    class TestIconSize {
         public static void main(String[] args) throws Exception {
              Image image = ImageIO.read( new URL(
                   "http://forums.sun.com/im/silver-star.gif") );
              ImageIcon imageIcon = new ImageIcon( image );
              System.out.println( "Width: " + imageIcon.getIconWidth() );
              System.out.println( "Height: " + imageIcon.getIconHeight() );
    }Output.
    andrew@pc1:/media/disk/projects/numbered/all$ java TestIconSize
    Width: 16
    Height: 16
    andrew@pc1:/media/disk/projects/numbered/all$ The post after yours seems of even more dubious quality. For those (and other) reasons, I second Darryl's call for an SSCCE.

  • 'The font 'Arial-BoldMT' contains bad /Widths' message

    I have created a rather extensive form using Acrobat 5.0.
    After creating the form, I was reading online about the new feature in Acrobat 9 that offers the ability to allow Adobe Reader users to save a copy of a filled-in form. This was very appealing to me, so I acquired Acrobat 9 and proceeded to utilize this feature.
    Before applying the new feature, I simply made a copy of the form by using 'Save as'. After the save completed, and anytime I re-open the from (either in Acrobat 9 or Reader 9), I am receiving the following message in the form of an information window (indicated by a speech bubble with an 'i' in it):
    'The font 'Arial-BoldMT' contains bad /Widths.'
    This message also persists after saving the file with the aforementioned new feature applied.
    Can anyone provide me with any insight regarding this message, and, more importantly, how to resolve it?
    Any and all assistance will be greatly appreciated!
    Todd Williams

    If you have the original document that the form was built on, try to print it to a new PDF. Then use the replace pages to put it in place of the current pages without deleting the form fields. I have no idea where the font error would have come from, but this might work. Be sure to play with copies and not your originals.
    If all else fails, you could even just print the current PDF form to a new PDF with the document only selected. Then use that result to replace pages.

  • How can I get Illustrator to automatically resize the font to a designated page width?

    I want to be able to type lines of text and have Illustrator automatically change the font size so that it fits that width of the page exactly, even if on one line there are 8 words and on another line there are 2 words - I want the big and small letters effect. I was previously doing this in Photoshop manually but someone suggested I could do it easier in Illustrator so here I am....
    Thanks.
    Jay

    each line has to be a separate text object (point text, not area text)
    use this version, as SRiegel pointed out, the script was missing a line
    #target Illustrator
    //  script.name = textBlock_CS4.jsx; // not tested on CS5 yet.
    //  script.description = converts selected point textFrames into a Block of Text;
    //  script.required = one document with at least two selected text frames;
    //  script.parent = carlos canto // 12/4/11;
    //  script.elegant = false;
    if (app.documents.length > 0)
            var idoc = app.activeDocument;
            var sel = idoc.selection;
      if (sel.length>1)
      var width = prompt ("Enter desired Text Block width in Points", 300, "Text Block"); //
      if (width!=null) // quit if pressed Cancel
      var dupLayer = idoc.layers.add(); // add a layer to place the new block of text
      dupLayer.name = "Text Block";
      var blockGrp = dupLayer.groupItems.add(); // add a group to final output
      blockGrp.name = "Text Block";
      var left = idoc.width/3; // place block at the bottom 3rd of the page
      var top = idoc.height/3
      var spacingMM = prompt ("Enter spacing in Millimeters", 2, "Text Block"); // text lines spacing in mm
      var spacingPts = new UnitValue(spacingMM,"mm").as ("pt") // convert to points
      for (i=0; i<sel.length; i++) // loop thru selection
      if (sel[i].typename == "TextFrame") { // continue if textFrame, ignore other pageItems
      var itext = sel[i].duplicate(blockGrp, ElementPlacement.PLACEATEND); // duplicate text
      itext.selected = false; // deselect it
      grpName = itext.contents; // get contents to name outline group
      var ioutlined = itext.createOutline(); // create outlines
      ioutlined.name = grpName; // rename group
      var perCent = width/ioutlined.width*100; // get scaling percentage, based on desired width of block
      var scaleMatrix = app.getScaleMatrix(perCent, perCent);
      ioutlined.transform (scaleMatrix); // scale outlined text
      ioutlined.left = left; // position text
      ioutlined.top = top+ioutlined.height+spacingPts; // top = previous item top + spacing + current item
      top = ioutlined.top // get current top to use on next item
      } // end if - non text frames
      } // end for loop - selection
      } // end check prompt for calcel
      } // end if selection > 1
      else
      alert ("Select at least 2 textFrames before running");
        } // end at least one document
    else
            alert ("There are no open documents");

  • Font Embedding missing glyphs

    Hi all
    I want to to create a SWC with a font resource using the IDE.
    So I
    create in the library a font called Presenter_font I use
    Arial ( it has
    all the glyphs I need)
    I create a textfield and assign it Presenter_font* I embed
    the font ,
    I want to include some Greek symbols so I include the greek
    in the
    embedding options.
    I test the movie and all works fine "IFNβ" appears
    as it should
    Now the last part of the puzzle is to export for Actionscript
    so it
    becomes a class I can use elsewhere I do that using the
    linkage option
    and now when I test it I get "IFN" why has the beta glyph
    gone?
    I feel I am missing something ( as usual).
    Richard

    calvyan wrote:
    Is there a way for InDesign to do such substitution automatically? I.e., apply a default font, which can be specified by user, for all the missing glyphs.
    No. Alas, I might add. There is some sort of auto-catch, specific for Symbol symbols, but no-one knows how it works and you cannot manipulate it yourself.
    If not, how to search/find those missing glyphs with GREP or script?
    Not specifically, i.e., you cannot search for "any missing glyph". Add a GREP style which changes just the font (make sure it doesn't set the font style as well, or else your Bolds or Italics might disappear). Create a new Preflight profile that checks just for missing glyphs, so you won't miss any.
    None of this can be automated though.
    .. it seems easily (not to identify the unicode ranges which seems not very easy) to find them using GREP, but I failed to find it.
    InDesign's GREP flavor doesn't allow named Unicode blocks (http://www.regular-expressions.info/unicode.html), but I have successfully used character ranges to automatically set the font for Chinese, for example.

  • How find the missing glyph using javascript [like indesign preflight], and replace same glyph available font or

    The situation:
    I want to use basetext font, but some of the glyphs are missing in it, and are highlighted with pink boxes. common font [stix, etc.] have much more glyphs than basetext font. I can apply common font [stix, etc.]manually for each of the missing glyphs or insert two character and use kerning set it up, but it is tedious.
    Question:
    How find the missing glyph using javascript [like indesign preflight], and replace same glyph available font or insert two character and use kerning set it up?
    Any one know how to do this?
    Thanks in Advance,
    ~Jack

    Try Peter kehrl's script
    http://www.kahrel.plus.com/indesign/missing_glyphs.jsx

  • How to apply a new font for missing glyphs in another font?

    The situation:
    For an article, I want to use Font1, but some of the glyphs are missing in it, and are highlighted with pink boxes. Font2 have much more glyphs than Font1. I can apply Font2 manually for each of the missing glyphs, but it is tedious.
    Question:
    Is there a way for InDesign to do such substitution automatically? I.e., apply a default font, which can be specified by user, for all the missing glyphs.
    If not, how to search/find those missing glyphs with GREP or script? Since InDesign can identify the missing glyphs and marked them with pink boxes, it seems easily (not to identify the unicode ranges which seems not very easy) to find them using GREP, but I failed to find it.
    Any one know how to do this? Thanks.

    calvyan wrote:
    Is there a way for InDesign to do such substitution automatically? I.e., apply a default font, which can be specified by user, for all the missing glyphs.
    No. Alas, I might add. There is some sort of auto-catch, specific for Symbol symbols, but no-one knows how it works and you cannot manipulate it yourself.
    If not, how to search/find those missing glyphs with GREP or script?
    Not specifically, i.e., you cannot search for "any missing glyph". Add a GREP style which changes just the font (make sure it doesn't set the font style as well, or else your Bolds or Italics might disappear). Create a new Preflight profile that checks just for missing glyphs, so you won't miss any.
    None of this can be automated though.
    .. it seems easily (not to identify the unicode ranges which seems not very easy) to find them using GREP, but I failed to find it.
    InDesign's GREP flavor doesn't allow named Unicode blocks (http://www.regular-expressions.info/unicode.html), but I have successfully used character ranges to automatically set the font for Chinese, for example.

  • How do you eliminate back the border width from a given selection?

    Perhaps a stupid question, I dont know, but whenever I make a selection and then go to selection>modify>border to select any given width from 1 to 200px, how do you eliminate back any created width? the value 0 is not accepted, only from 1 up. Does this mean I have to deselect everything and start the whole selection back over? that would take a lot of time if my selection was a little complex and took me some time perform it!
    I tried "googleing" that answer but couldnt find anyting so I am coming for help here.

    It's unclear to me what you mean by "Eliminate back".  Do you want just the border to extend inside the original selection?
    Are you recording an action?
    Keep in mind you can save any number of selections under different names via Select - Save Selection, then combine them with the Load Selection function using features like "Overlap" and "Subtract From Selection".
    -Noel

  • Question about "missing glyph" error in CS4/CS5 live preflight

    Hi all
    Basically I'm wondering what the "missing glyph" error refers to specifically and what are the implications of such an error. The help file doesn't mention it, as far as I can see.
    I have some PDFs (from WordPerfect) which are causing this error when imported into Indesign. I think the pages which cause this error have been corrected with a PDF editor (Iceni Infix) but Acrobat reports all the fonts are embedded and subsetted. A third-party preflight programs reports everything is okay too.
    Am I safe to ignore these errors?
    thanks,
    Iain

    I'm not sure "Missing Glyph" picks up missing glyphs in PDFs. What does ID point to when you click the page number hyperlink in the Preflight panel?
    If you have missing glyphs in your document text, they will look something like this:
    -- then again, perhaps you cannot see the pink highlight because of background (an image) or foreground (another character 'on top of it', or perhaps even a graphic over the text).
    How serious this is? It's ... critical! As you can see in my image, the only thing InDesign can do is notify you with the pink highlight and temporarily insert the font's own "missing" image (which may be a rectangle, a question mark, or even just a space).
    Fortunately, if you do need the character, all you have to do is change the font (for those characters only) to one that does contain the missing ones. You'll have to try all your system fonts before you find one that does and matches the rest of your text as well :-)
    There are a few special cases where InDesign gets it wrong, though. The Symbol font, for example, might not get imported correctly from Word, and in that case you have to manually change the character -- i.e., find the correct one in the Glyphs panel and insert it from there. There is also the Strange Case of the Invisible Marker: InDesign thinks there is something but if you check against the original Word file, there is nothing. This will usually insert a character code U+FFFD; you can safely delete them.

  • Displaying a picture from an array of pixel values

    I have a picture I want to display in an AWT frame. The picture is stored as several arrays of pixel values which represent rectangles.
    Each rectangle has a start co-ordinate and a height and width.
    There is a ColorModel associated with the pixel values, so that's not a problem.
    What's the best way to display these rectangles as pixels, and patch them all together to make the full picture? I'm currently trying to use a MemoryImageSource, but I'm having trouble displaying more than one rectangle at once, and the picture flickers like mad, suggesting MemoryImageSource intended for animation, whereas I just want to display the picture once.
    Any suggestions?

    OK, that looks good. I'm investigating it.
    However, It's not clear how to get the pixel values from an array into it. It requires a WriteableRaster of the pixel data, and to create a WriteableRaster, you need a DataBuffer... which is Abstract!
    Do you know how to make a DataBuffer from an array?

  • Windows 7 fills in missing glyphs - suggestions?

    Hi all,
    I wasn't sure how to title the thread in a way that caught what I was trying to get at, so please bear with me.  And I do realise that what I'm asking about is a Windows issue rather than an Adobe one, but I thought people here might have an insight into the problem, given that it affects those who focus on and use fonts specifically.  I haven't been able to find help or much engagement on any Windows forums, where the discussion is more about operating system capabilities and the issues of fonts are somewhat arcane to most posters.
    So please indulge me for a moment, and if you can help me, then thanks!
    I'm new to Windows 7.  What I've discovered is that Windows 7 has substantially changed the way it handles and displays fonts.  (Vista may have as well, but I never stepped into that pond.)  In both the Font Viewer and in any Font Manager that I've tried, Windows 7 fills in any missing glyphs in a font within the basic ASCII character set with an auto-generated generic set of glyphs, often making it very hard - or at least time- and effort-intensive - to determine which glyphs are from the font and which glyphs are auto-filled.  It was meant to be helpful, I imagine, but it's really not.
    In fact, I find it really, *really* frustrating, because it makes it so hard to glance at the display of the font and see quickly whether it's got the glyphs I'm looking for or not.  (Some fonts are incomplete, for various reasons.  Sometimes they use the basic 1252 encoding but not the standard glyphs, and they too get any missing glyphs autogenerated.)
    Am I the only one this bothers?
    More to the point:  Has anyone found a way to turn this "feature" off?  Or can anyone give me an insight on the issue that I may not have thought about, especially ways to use it productively?  I find it really counter-intuitive and enormously unhelpful and distracting.
    But enough whingeing.  Any help or thoughts would be greatly appreciated.

    Miguel.
    Thanks for the information.
    Why was this done, do you know?  I can't think of a circumstance where this would actually be helpful, especially since, as you say, there is apparently no mechanism for the user to have control over the face that's used to fill empty glyphs.  For anyone purposely using fonts, it would seem to be more of an intrusion than assistance.  Nobody using fonts as part of purposeful design will want glyphs from a different face inserted out of their control;  you either use the font as is, or do something about the incomplete character set (if you have that capability), or you choose a different font.
    But maybe I'm missing something?  What am I not understanding?
    And why does it not happen with every font, just the overwhelming majority?  I haven't been able to spot a pattern to those where this "fallback" doesn't kick in, but in some instances it doesn't.  The Font Viewer fills any missing glyphs with the .notdef character;  in others, it inserts its own characters, and ignores the .notef character.  I can't figure out why.
    By the way, John, as I said every font manager I've tried just shows what Font Viewer does, which is why I was sure it was an OS issue.  And Dov, yes I realise the problem itself has to go back to Microsoft, as I tried to make clear, but already I've got more information on the issue from posting here than the questions I've asked in Microsoft and Windows forums, where most people know nothing about fonts or their use.

  • Font missing, how to find to replace?

    I'm using Adobe Illustrator CS6, upgrading from CS5, on a Win7 machine. I have an old Type 1 face (Interstate) where I'm replacing it with a custom Open Type face from Font Bureau (InterstateRL). I  have removed the old font from my system, so I can root out every instance and replace it by opening each Illustrator file used weekly. When I open up the file, I get the expected message "InterstateTab-Regular: Font not found on the system; missing font has been substituted." Great, just what I expected! But when I go to find the font to replace it with the new font, I cannot find it in the file. I have done the following:
    Look in Normal Paragraph Style (or any paragraph style). -- missing font not in use
    Look in Normal Character Style (or any style) -- missing font not in use
    Document Setup > Highlight Substituted Fonts -- None show up
    Go to Find Fonts to search for missing font -- But it does not appear in Find Fonts
    Go to Object>Path>Cleanup and check Empty Text Paths and click ok. Close and reopen document. -- done, no change
    Check that there are no hidden layers -- There are no hidden layers or sublayers
    Check to see if any text objects are formatted with no color that use the missing font - none are
    Check the Patterns and Symbols, if there is any text inside those. Find Font only looks for what is in the document. -- Selected all symbols and deleted (these did not include text), no change.
    Any other ideas for what I could try? 

    SOLUTION! This appears to related to the fact that the object in the file was a GRAPH. The increments had always appeared blank in the final document, and the corresponding cells in the datasheet were blank. To fix the problem,  I had to enter text in every blank cell in the first column of the datasheet to make it visible as a Category Axis label in the graph,. Since it didn't matter what the text was, I just used a period symbol in each empty cell. Then I could group select the Category Axis label text at the bottom of the graph, apply the Character Style with the preferred font, and CLEAR the override (if it appeared) to the Character Style.
    I then closed and reopened, and the missing font message did not appear. I removed the periods in the datasheet, saved again, opened, and the missing font message appeared to be gone for good.
    So it does appear that whatever font was assigned to the Graph Category Label text was still assigned, even though the font wasn't visible in any of the panels or through Find Fonts.
    NOTE: The unwanted InterstateTab-Regular Type1 font NEVER APPEARED anywhere that I could see in Illustrator. It didn't appear in FIND FONTS or in my CHARACTER panel, even when I only selected one individual "invisible" increment, or one of the increments when it became visible with the period symbol. However, it was obviously embedded in the graph element itself at the time I had created the graph. And if I created a pdf file, from Illustrator or from the InDesign file the Illustrator art was linked to, it appeared in the FONTS tab. So it was clearly getting embedded in the pdf file. The only font that every appeared in any window, except for the missing fonts message on opening, was the correct InterstateRLTab Regular Opentype font.

  • Font changes when printing from CVI OI

    TestStand 3.1f1
    CVI 7.0
    We generate text reports and like to have them displayed and printed
    using a fixed width font (the default in TestStand).  From the
    sequence editor, selecting the print button from the report tab of a
    completed execution yields a correctly printed page.  However, the
    print button on the ReportView in the CVI Full-Featured Operator
    Interface prints with a variable width font.  The reports appear
    on screen correctly in both the sequence editor and the OI.
    Thanks,
    Peter

    Hi
    There is one workaround.
    You can change the report Font for text reports from your current font to Courier New.
    That should print correctly.
    Hope this helps.
    Regards
    Anand Jain
    National Instruments

  • Plotting elements from an array in waveform chart

    Hi all,
             I am trying to plot a real time data by extracting single element from an array.
    Problem is that, at some frequencies waveform chart plot perfect while at other frequencies it plots like a undersampled signals.
    Any suggestions?
    Attachments:
    wfm.png ‏136 KB
    wfm.vi ‏133 KB

    The timing information comes from the data acquisition process, not the display. You should be able to get equally good display of timing information on a chart or a graph.
    How many samples do you read at a time? How do you define "realtime"? Anything plotted on a graph or chart for the use of a human operator does not need to be updated more than about 10 times per second because the eye/mind system works at about that time scale. For humans a real time grahical update rate of 2 to 10 Hz is adequate. Then you will have 256 to ~51 new samples at each update.
    Another issue is that both your graph and your plot have plot areas which are less than 200 pixels wide. If you supply more than [plot width] pixels to a graph or chart, LabVIEW will reduce the data to determine which pixels to plot. So your graph with 1000 X-axis values has that reduced to the 184 pixels across the width of the graph. So, regardless of the precision of the data, the "precision" of the display is limited to the number of pixels.
    Lynn

Maybe you are looking for

  • Creative cloud on multiple computers, 1 user, teacher price

    If I purchase creative cloud as a high school teacher discounted price, am I only able to install and use it on one computer? I have a laptop and a desktop that I would like to be able to use it on, and don't want to have to pay twice.

  • FI-SD  Tax statement item missing for tax code R4

    Dear, I create a sales order in ECC 6.0, there are a sales type condition=0 and a tax type condition amunt =0, there are an other type condition <>0 without taxes.  I create the billing document without problems, but when I release to accounting appe

  • Safari 5 slow on win xp

    How do I find what fixes/patches Apple is  working on and  forcast dates for fixes?

  • Adjust page boundary when converting eps to pdf

    Hi, I have a problem with the page boundaries when converting eps files to pdf files. The resulting pdf page boundary is the bare minimum around the eps objects, leading to different page sizes when the pdf is viewed on screen. I would like all of my

  • How to create file with APDU

    Hello everybody, It's my first time using Java Card ^_^,I want to create a file and fill the fill with binary data.but i don't know how to create file with APDU commands,so I need help here. I think that there must be a Manual of the JavaCard's OS in