Getting Fonts Used in a PSD

I'm trying to script some font swapping in PSDs. It mostly works but I discovered a situation where it breaks. If multiples fonts are used on a single text layer, only the first font is listed. I don't know if there is a workaround for this. I've not found one thus far.
Here's the code I'm using, which I borrowed from a list archive somewhere:
tell application "Adobe Photoshop CS5"
     tell the current document
          set Used_Fonts to {}
          set Text_Layers to every art layer whose kind is text layer
          repeat with This_Layer in Text_Layers
               set This_Font to font of text object of This_Layer
               if This_Font is not in Used_Fonts then
                    set end of Used_Fonts to This_Font
              end if
          end repeat
     end tell
end tell
Used_Fonts
Thanks in advance for any insight into another method to get this info.
Stephan

Does it need to be an Applescript solution?
The only way I know to get a list of fonts used in a single text layer with multiple fonts is by using Action Manager to get the textItem's descriptor and search the textRanges. Applescript can not use Action Manager directly and I can not recall the way to pass the fonts from javascript to Applescript.
I can post a javascript/Action Manager function if it would help.

Similar Messages

  • Export fonts used in PSD

    I'm trying to concieve of a way to copy the fonts used in a psd file from the 'C:\WINDOWS\Fonts' folder to a 'Fonts' folder in the same location as the PSD.
    Essentially, I want to be able to "package" a psd file like you would in InDesign (minus the links).
    Can anybody think of a way this would be possible to make into a script/action? We share files around the office at which I work at and I often forget to copy font files I use into the working folder and, of course, the person who needs to open the psd doesn't have the font.
    Any help greatly appreciated.
    Thanks,
    Matt

    This thread may be of use..
    http://forums.adobe.com/message/2191661#2191661

  • How to get the name and the path of the font used in photoshop (not textItem.font)

    I'm trying to get the real name of the font and the path, is there a "easy" way to do it ?
    i need to get the font file (*.ttf or *.otf) and copy to the same directory as the psd file, that's why textItem.font doen't work for me.
    thanks in advance

    You could try this as it looks as if you are using Windows.
    Run the VBS script to create a fontlist file on the desktop.
    Then run the javaScript on the PSD document.
    It should copy the fonts to the same folder as the document, it will also create a text file with a list of fonts.
    It didn't find all the fonts in my test psd maybe because it wasn't in the windows/font folder?
    VBS.
    Set wshShell = WScript.CreateObject("WScript.Shell")
    Set wshSysEnv = wshShell.Environment("PROCESS")
    sMyFile = "c:" & wshSysEnv("HOMEPATH") & "\Desktop\Fontlist.txt"
    Dim objFileSystem, objOutputFile
    Dim strOutputFile
    Set objFileSystem = CreateObject("Scripting.fileSystemObject")
    Set objOutputFile = objFileSystem.CreateTextFile(sMyFile, TRUE)
    Dim str
    Const HKEY_LOCAL_MACHINE = &H80000002
    strComputer = "."
    Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
    strComputer & "\root\default:StdRegProv")
    strKeyPath = "Software\Microsoft\Windows NT\CurrentVersion\Fonts"
    objReg.EnumValues HKEY_LOCAL_MACHINE, _
    strKeyPath,arrEntryNames,arrEntryZZZ
    For Each entry in arrEntryNames
    str = wshshell.RegRead("HKLM\Software\Microsoft\Windows NT\CurrentVersion\Fonts\" & entry)
           objOutputFile.WriteLine(entry & "," & str)
    Next
    objOutputFile.Close
    javaScript.
    #target photoshop;
    app.bringToFront();
    main();
    function main(){
    if(!documents.length) return;
    try{
    var Path = activeDocument.path;
    }catch(e){
        alert("This document needs to be saved before running this script!");
        return;
    var FontFile = File(Folder.desktop + "/FontList.txt");
    if(!FontFile.exists){
        alert("You need to run the vbs script first to create the FontList file!");
        return;
    var FontList = new Array();
        FontFile.open('r') ;
    while(!FontFile.eof){  
       strInputLine =FontFile.readln();
       if (strInputLine.length > 3) inputArray  = strInputLine.split(",");
       if(inputArray.length == 2) FontList.push([[inputArray[0]],[inputArray[1]]]);
    FontFile.close();
    var PSDtextLayers = getNamesPlusIDs();
    PSDtextLayers = UniqueSortedList(PSDtextLayers);
    for(var a in PSDtextLayers){
        for(var f in FontList){
             var rex = new RegExp;
             rex = PSDtextLayers[a].toString();
            if(FontList[f][1].toString().match(rex,"i")){
                var From = new File("/c/windows/fonts/" + FontList[f][1].toString());
                var To = new File(Path + "/"+  FontList[f][1].toString());
                From.copy(To);
                break;
    var rFonts = new File(Path + "/required Fonts.txt");
    rFonts.open('w');
    rFonts.write(PSDtextLayers.join('\n'));
    rFonts.close();
    function UniqueSortedList(ArrayName){
    var unduped = new Object;
    for (var i = 0; i < ArrayName.length; i++) {  
    unduped[ArrayName[i]] = ArrayName[i];
    var uniques = new Array;for (var k in unduped) {
       uniques.push(unduped[k]);}
    return uniques;
    function getNamesPlusIDs(){
       var ref = new ActionReference();
       ref.putProperty( charIDToTypeID( "Prpr" ), charIDToTypeID( 'NmbL' ));
       ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
       var Names=[];
    try{
        activeDocument.backgroundLayer;
    var i = 0; }catch(e){ var i = 1; };
       for(i;i<count;i++){
           if(i == 0) continue;
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
            var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
            if(layerName.match(/^<\/Layer group/) ) continue;
            if (desc.hasKey(stringIDToTypeID('textKey'))){
                desc = desc.getObjectValue(stringIDToTypeID('textKey'));
                desc = desc.getList(stringIDToTypeID('textStyleRange')).getObjectValue(0).getObjectValue(stringIDToTypeID('textStyle'));
                var postScriptName = desc.getString( stringIDToTypeID('fontPostScriptName'));     
    Names.push(postScriptName);
    return Names;

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

  • I just updated Firefox to 6.0, and suddenly certain parts of the text which used to be in English now display in Devanagari, the font used in Hindi. How do I get it back to English?

    I just updated Firefox to 6.0, and suddenly certain parts of the text which used to be in English now display in Devanagari, the font used in Hindi. How do I get it back to English?

    You can do a check for corrupted fonts and other font issues:
    * http://www.creativetechs.com/iq/garbled_fonts_troubleshooting_guide.html - CreativeTechs Tips: Garbled Fonts Troubleshooting Guide
    * http://www.thexlab.com/faqs/multipleappsquit.html - Font Book 2.0 Help: Checking for damaged fonts

  • Is it possible to replace fonts used in a PDF?

    Hi. I have a PDF that was created by a third party. I contains a couple of fonts that are not available on my system, and for some reason they won't swap for other fonts. When I open the PDF I get the message "Cannot find or create the font 'WP-MultinationalBCourier'. Some characters may not display or print correctly."
    Although the PDF looks OK to me, it won't print on the printer down in the print shop. (That printer is very fussy and will not print PDFs unless the font situation is perfect.)
    I can't even tell where this font is used. It's over 500 pages, so I can't check every paragraph. I do not have access to the source files, and going back to the third-party (who created the PDF) is not really an option.
    My question: Is there a way that I can force Acrobat to swap out the 'WP-MultinationalBCourier' font and replace it with some regular font? As in, on a permanent basis, so the print shop printer won't ever know that odd font was used?
    Thanks
    e
    d

    Hi Ed
    I used to spend hours working out the same problems. There's good news and bad news. First though -- what version AA are you using.
    Bad news is, unless you can get hold of the exact fonts used to create the pdf -- and then put them on your system -- there will not be much you can do, unless AA has vastly changed their procedures.
    Even if you get the exact font and add it to your system, I am still not sure AA will "see" it, depending upon if the font was originally embedded into the pdf or not, when it was made. Logically, it would appear that if not embedded the program would recognize it on the system. But, unfortunately, this has not always worked for me and I do not know why myself.
    Unless your required font is something like Hebrew or Chinese, the program will automatically replace your courier to the next likely (internally programmed) selection, so you will not notice any problems. (my experiences & problems were always with foreign languages)
    You can replace a font or make a correction by blocking the sentence or word, then using your right-click context menu, then selecting Font, and making the replacement.
    Perhaps the best way would be so save the file as another .doc file and start all over again, but with the font your printer will accept?
    Is that an option?
    let me know.
    BarryG

  • How to get Font's associated with a pdf document.

    Hi All,
    I am currently working on a project related to Document Management in SAP. For this I have a set of pdf document's that needs to be classified as 'searchable' and 'Non-searchable'. I am planning to identify the document based on Font contents i.e a searchable document has some font associated with it, and non-searchable documents do not have any font associated with it.
    I am trying to use the class cl_fp_pdf_object and get the information about font. I see that there is no function which gives me this information directly. Is there any way to get font information of a pdf documents using classes ? or Is there any way to identify directly weather a document is searchable or not ?  Please help.
    DATA: l_fp          TYPE REF TO if_fp,
               l_pdfobj      TYPE REF TO if_fp_pdf_object.
        Create PDF Object.
          l_pdfobj = l_fp->create_pdf_object( connection = p_dest ).
        Set document.
          l_pdfobj->set_document( pdfdata = l_pdf ).
        Set task to get metadata.
          l_pdfobj->set_task_getmetadata( ).
        Execute, call ADS.
          l_pdfobj->execute( ).
    Thanks
    Aditya

    Just curious....why would you make "font" the basis of that classification?

  • Is there a way to locate file path of a font used in text layer?

    I delivered a file to a client and there is a missing text layer dependency.
    I thought I delivered the correct font for the text layer but there is an issue somewhere...perhaps multiple versions of the font on my system..or slight
    difference in the font name. The project loads without the error on my system.
    Is there a method within After Effects to obtain a file path for the font I am using? ..or at least a way to get more detailed information
    about the font itself?...I mean beyond what is available in the font selection window.
    I need to locate the exact font in the exact folder After Effects is pulling it from.

    even better..I did a search within Fontbook for comparable file name..as I don't add and remove fonts constantly
    and discovered the font and also discovered why there was confusion in AEFX..the font had been generated in
    Fontographer and it's file name did not match error prompt or collected file report
    that was better than suffering through the 100's of possible results I was getting in Finder.  And Fontbook also provided the path to the exact font used...
    ..feeling a bit silly...but I think this will work.

  • 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

  • How-to get Font weight information while reading a PDF document

    Hello everyone
    it seems that the available tools to read PDF documents from Java don't allow to get font weight informations about the tokens read from PDF.
    I need to know if a character is bold in order to recognize if it could be part of a paragraph's title.
    is there a way to keep this information? (now I'm using PDFBox but it seems to allow only to get the PDF content as plain text, without keeping this kind of font weight info...)
    thanks sincerely a lot
    to anyone who would be so kind to help me
    ;)

    shilkie wrote:
    I've already read the wiki and the examples about iText, and also the two free tutorial chapters, but it seems iText doesn't allow to check the font character of a pre-existing PDF document,,it only allows to create document with a specified font but this is not what I needWell, to tell you the truth, I don't do much with PDF, myself, I only believe (from anecdotal evidence) that iText is much better than PDFBox. Have you downloaded it and tried a few things, or just read some of the docu? I am fairly sure that if you designate a font, there is probably a way to retreive this font as well, although not necessarily. Download it and play around a bit.

  • Cant get @font-face to work on my new web site

    Hi everyone,
    I Cant get @font-face to work on my new web site.
    I tryed it before on other web sites and it worked just fine.
    Here is the code i am using:
    CSS:
    @charset "utf-8";
    @font-face {
    font-family:"Caviar Dreams",sans-serif !important;
    font-style: normal;
    src:url ("../fonts/CaviarDreams.ttf") format('truetype');
    src:url("../fonts/CaviarDreams.eot") format('eot');
    src: url("../fonts/CaviarDreams.svg") format('svg');
    src:url("../fonts/CaviarDreams.woff") format('woff');
    src:url("../fonts/CaviarDreams.otf") format('otf');
    /* Simple fluid media
    Note: Fluid media requires that you remove the media's height and width attributes from the HTML
    http://www.alistapart.com/articles/fluid-images/
    img, object, embed, video {
    max-width: 100%;
    /* IE 6 does not support max-width so default to width 100% */
    .ie6 img {
    width:100%;
    Dreamweaver Fluid Grid Properties
    dw-num-cols-mobile: 5;
    dw-num-cols-tablet: 8;
    dw-num-cols-desktop: 10;
    dw-gutter-percentage: 25;
    Inspiration from "Responsive Web Design" by Ethan Marcotte
    http://www.alistapart.com/articles/responsive-web-design
    and Golden Grid System by Joni Korpi
    http://goldengridsystem.com/
    /* Mobile Layout: 480px and below. */
    body{
    background-image:url(../images/background/wraper_bg.jpg);
    background-repeat:no-repeat;
    background-attachment:fixed;
    background-size:100% 100%;
    font-family:"Caviar Dreams", sans-serif !important;
    .caviar{
    font-family:"Caviar Dreams", Arial, Helvetica, sans-serif ;
    .index_bg{
    width:100% !important;
    height:100% !important;
    background:url(../images/graphics/index_bg.png) !important;
    background-size:cover !important;
    .welcome_image{
    position:absolute;
    top:35%;
    width:95% !important;
    margin:2% !important;
    .nav{
    color:#FFFFFF !important;
    font-family:"Britannic Bold" !important;
    font-size:14px;
    font-weight:lighter !important;
    .background_white{
    background:rgba(255,255,255,0.7);
    .background_black{
    background:rgba(0,0,0,0.65);
    .background_black_2{
    background:#000 !important;
    .background_noir{
    background:rgba(179,1,1,0.7);
    .background_purple{
    background:rgba(152,131,201,0.7)!important;
    color:#FFFFFF !important;
    width:100% !important;
    height:25px;
    text-decoration:none !important;
    font-family:"Caviar Dreams" ;
    border:0px !important;
    margin:0px !important;
    padding:0px !important;
    .background_purple:hover{
    background:#FFFF00!important;
    color:#000 !important;
    width:100% !important;
    text-decoration:none !important;
    font-family:"Caviar Dreams" ;
    border:0px !important;
    .white{
    color:#FFFFFF !important;
    .black{
    color:rgba(0,0,0,1) !important;
    .red{
    color:#B30101 !important;
    .yellow{
    color:#FFFF00 !important;
    .black_span{
    background:#000000 !important;
    color:#FFFFFF !important;
    margin:1% !important;
    margin-left:5px !important;
    padding:5px !important;
    .black_span_margin1{
    margin-left:0px !important;
    .black_span_margin2{
    margin-left:0px !important;
    .border_white{
    border:3px solid #FFFFFF !important;
    margin:0px !important;
    padding:0px !important;
    .border_gold{
    border:0px solid #000!important;
    margin:0px !important;
    padding:0px !important;
    h1, h2, h3, h4, h5, h6{
    font-family:"Britannic Bold" !important;
    font-weight:lighter !important;
    color:#FFD700 !important;
    margin-left:2% !important;
    margin-right:2% !important;
    margin-top:2% !important;
    margin-bottom:2% !important;
    p{
    font-family:"Caviar Dreams", Arial, Helvetica, sans-serif !important;
    font-size:16px !important;
    color:#FFFFFF !important;
    margin-left:2% !important;
    margin-right:2% !important;
    margin-top:2% !important;
    margin-bottom:2% !important;
    .text-small{
    font-size:12px !important;
    .caviar{
    font-family:"Caviar Dreams" !important;
    I am trying to use the font Caviar Dreams on my new web site but i cant get it right,
    Can anyone tell me what is wrong.
    And also i would like some help with IE9, it seems the header is displaying in blue instead of black on IE9 and 10.
    My web site adrees is marcoalexwebdesign.site11.com  .

    I already fixed the issue, it seems trhat in dreamweaver the fonts ttf , otf, etc must be in a folder named webfonts, and then dreamweaver connects the fonts stylesheet to the main stylesheeet with @inport.I had to unisntall the fonts from my windows and download them again and add tehm with dreamweaver add web fonts feature.
    Thanks ayway.

  • List of Fonts used in PDF through Javascript

    Hi all,
    I need to get the list of fonts used in the PDF and have to change the particular font text to some color across the document using Javascript. As i searched, i didn't get any clue. Using Acrobat Professional 7.0.
    Is there any idea plz. share it.
    Thanks,
    vaasu

    You can use a plug-in.
    PDFlib FontReporter is a free plug-in that creates a report of fonts used in a PDF.

  • [JS][CS4]List fonts used in the Document

    Hi to all scripting gurus,
    I have this following script that returns a list of fonts used in the document:
    function fontused(){               var fontscoll = document.fonts;               for(var i = 0; i < fontscoll.length; i++){                       var font = fontscoll[i];                       alert(font.name);                } }
    The above is working OK my problem is that it also list the fonts used in the placed illustrator files (.eps). Is there some kind of parameter or something that i can use so that it only list the fonts used in the text?
    -CharlesD

    Charles
    Doesn't time fly?
    This will give you the idea, if when you find more exceptions add them in a likewise manner.
    The "if" statements check that tables, headers, etc. exists otherwise an error will be throw.
    Enjoy
    Trevor
    P.s. I had planned on updating the script after David highlighted the problem, just didn't get round to it.
    // Script to find fonts in documents which are not just in content pasted from illustrator file
    // By Trevor http://forums.adobe.com/message/4807396#4807396
    var   myFonts="",
            uniqueFonts = {}, n;
    if (app.documents[0].stories.everyItem().textStyleRanges.length > 0) fontsIn (app.documents[0].stories.everyItem().textStyleRanges.everyItem().appliedFont)       
    if (app.documents[0].stories.everyItem().tables.length > 0) fontsIn (app.documents[0].stories.everyItem().tables.everyItem().cells.everyItem().textStyleRanges.everyItem().appliedFont)
    if (app.documents[0].stories.everyItem().footnotes.length > 0) fontsIn (app.documents[0].stories.everyItem().footnotes.everyItem().textStyleRanges.everyItem().appliedFont)
    for (n in uniqueFonts) myFonts+=(uniqueFonts[n])+"\r";
    alert(myFonts)
    function fontsIn (item)
            var l = item.length;
            while (l--) uniqueFonts[item[l].name] = item[l].name;

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

  • Not able to get font style for some fonts

    Hi,
    I am getting font style(like regular, bold, italic etc) like this-
    while (count < fontCount) {//loop , which iterate throgh used fonts.
                                                      ATE::IFont currentFont = fontRefArray.Item(count);
                                                      if (!currentFont.IsNull()) {
                                                                FontRef fontRef = currentFont.GetRef();
                                                                AIFontKey fontKey = NULL;
                                                                result = sAIFont->FontKeyFromFont(fontRef, &fontKey);
                                                                result = sAIFont->GetUserFontName(fontKey, fontname, 50);
                                                                result = sAIFont->GetPostScriptFontName(fontKey, psname, 50);
                                                                result = sAIFont->GetFontStyleName(fontKey, stylename, 50);
                                                                result = sAIFont->GetFontFamilyUIName(fontKey, familyname, 50);
    For some fonts(not all the fonts) , Style name is comming as empty string, however for other fonts its working. Not sure why its working for some fonts and not for others. Other font properties are coming fine for all fonts.
    When its failing, result is not  kNoErr, but i dont know that how to get the exact error?Please help me in this issue.
    Regards,
    Harsh

    Hi A. Patterson,
    Thanks for your suggestion.
    I tried GetFontStyleUINameUnicode() also but its also returning the emply string for style name for some of the fonts only difference is that error is kNoErr for all fonts. May be there is some problem with those specific fonts(who knows? ).  m keep digging this.
    Regards,
    Harsh

Maybe you are looking for

  • How to publish a BOOK from iWeb blog

    During 2011 I kept a Blog in iWeb on me.com when my little 7 year old daughter was suffering from liver cancer. the Blog was read and commented by many people. I have been her Living Donor for the liver, and so far she is a "survivor" with sparks in

  • ITunes freezes when opeining if connected to the internet (mac)

    i have tried restarting my mac and everything i can think of but itunes only works if i disconnect the internet. wch means i cannot update my itunes match.please help

  • Exception message full view

    Hello, Is there a way to visualize more than 2 exception messages for an MRP element (doble click on MRP element from MD04)  but all of the exception messages generated by MRP ? Thanks for you answer, Regards

  • 06 IMovie question on resizing a clip

    How do I resize a video clip from 600 to uner 100m? It's not even a minute long. I have Imovie, streemclip and quicktime softward. thanks

  • IPad and IMessage problem

    Why does my iMessage only work sporadicly?