CFDocument and small caps

I have a paragraph inside a CFDOCUMENTITEM tag in a CFDOCUMENT tag with a CSS style of "... police-variant: small-caps;...". "but the text is not be rendered in small caps. I get the problem with or without FONTEMBED and also if small caps paragraph is in the body of the document instead of in the CFDOCUMENTITEM tag. Any suggestions?

Running ColdFusion 9.0.1.274733, Standard edition, Windows 2003 (5.2).

Code of...

< cfdocument
format = "PDF".
marginTop = "1.1".
marginBottom = "1.1".
marginRight = "0.4".
MarginLeft = "0.4".
orientation = "portrait".
unit = 'en '.
backgroundvisible = 'yes '.
fontembed = 'yes '.
filename = '... »
Overwrite = "yes".
>
< cfdocumentitem type = "header" >
< style p = "height: 20px" > < / p >
"< p style =".
border: 2px solid #557799;
do-family: Georgia, Verdana, Arial, Helvetica, without serif.
font size: 13pt;
make-weight: bold;
do-variant: small-caps;
color: #FFFFFF;
background-color: #7799BB;
padding: 5px 3px 0px 0px;
margin: 0px;
text-align: center;
vertical-align: middle;
' > sample Text < /p >.
< / cfdocumentitem >
.
.
.

The list of supported CSS styles for CFDocument can be found here: http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_d-e_05.html#4015343

do-variant is not supported by the CFDocument

Tags: ColdFusion

Similar Questions

  • The signatures and small caps in MS Word

    How can I access signatures and small caps for Adobe Garamond (or any other font opentype with these features built into the font file) using MS Office, including Word?  Signatures do not activate when checking 'conditional ligatures' and the small caps that appear when checking 'small caps' are not 'real' small capitals - they are just poor Word manufacturing.


    Thank you!

    You must use the option "Insert a symbol", select the subset of the "private use area" and insert one by one.

    It would be wonderful if MS Word provided a better user experience when you work with OpenType features, but this isn't something of that the police are in control.

  • Find the exhibitor and small caps

    Hello

    How to find the exhibitor and small caps in indesign via javascript.

    Kind regards

    Assia

    Hi assia,.

    Try this to find Exhibitor,

    var doc = app.activeDocument;
    app.findTextPreferences = null;
    app.findTextPreferences.position = Position.SUPERSCRIPT;
    var found = doc.findText();
    app.findTextPreferences = null;
    for(var i =0;i
    

    for small capitals

    var doc = app.activeDocument;
    app.findTextPreferences = null;
    app.findTextPreferences.capitalization = Capitalization.SMALL_CAPS;
    var found = doc.findText();
    app.findTextPreferences = null;
    for(var i =0;i
    

    Kind regards

    Cognet

  • Find without small caps italic and apply cstyle

    Hi all

    I have small capitals (nested) line with italic text (see the screenshot), I tried to apply the italic "small caps" style of characters successfully. After that I will apply the cstyle "small caps" to the text of the CAP as small, but my script works does not, can you if you please correct it.

    itals var = ["italic", "Light Italic", "LightItalic', 'Italic book', 'Cursive', 'Light Condensed Italic',"Book Condensed Italic","Ultra Condensed Italic","Ultra Italic","Condensed Italic", 'ThinItalic', 'BookItalic', 'LightItalic', 'BookItalic', 'UltraItalic']

    SmallCaps = var ["small capitals and old figures", "55Roman small capitals and old figures", "smallCaps"];

    Fix_All_SmallCaps_Italic()

    function Fix_All_SmallCaps_Italic()

    {

    Try

    {

    var myCStyle7 = app.activeDocument.characterStyles.item("15_Small_Caps_Italic").name;

    }

    catch (MyError)

    {

    var myCStyle7 = app.activeDocument.characterStyles.add ({name: "15 small caps italic", capitalization: Capitalization.SMALL_CAPS, fontStyle: "Italic" "})

    }

    for (i = 0; i < itals.length; i ++)

    {

    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;

    app.findTextPreferences.fontStyle = itals [i];

    app.findTextPreferences.capitalization = Capitalization.SMALL_CAPS;

    app.changeTextPreferences.appliedCharacterStyle = "15 small caps italic";

    app.activeDocument.changeText ();

    }

    }

    ~ exit (0);

    Fix_All_SmallCaps();

    function Fix_All_SmallCaps()

    {

    Try

    {

    var myCStyle6 = app.activeDocument.characterStyles.item("15_Small_Caps").name;

    }

    catch (MyError)

    {

    var myCStyle6 = app.activeDocument.characterStyles.add ({name: "15 small capitals", capitalization: Capitalization.SMALL_CAPS})

    }

    for (sc = 0; sc < smallCaps.length; sc ++)

    {

    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;

    app.findTextPreferences.fontStyle = smallCaps [sc];

    app.changeTextPreferences.appliedCharacterStyle = "15 small capitals;

    app.activeDocument.changeText ();

    }

    find the attribute and apply the character style

    myDoc var = app.activeDocument;

    mcstyle var = app.activeDocument.characterStyles.item("15_Small_Caps_Italic").name;

    app.findTextPreferences = app.changeTextPreferences = null;

    app.findTextPreferences.capitalization = Capitalization.SMALL_CAPS;

    app.changeTextPreferences.appliedCharacterStyle = "15 small capitals;

    var myFind = myDoc.findText ();

    for (var j = 0; j < myFind.length; j ++) {}

    If (. appliedCharacterStyle.name myFind [j] == mcstyle) {}

    Alert (myFind [j]. Happy)

    continue;

    }

    ElseIf (. appliedCharacterStyle.name myFind [j]! = mcstyle) {}

    app.activeDocument.changeText () ;}

    }

    }

    Screen shot 2015-03-05 at 5.34.11 PM.png

    Hello

    1. If your charStyles only has names?

    2. maybe disable this line:

    app.findTextPreferences.fontStyle = itals [i]

    so myFind table will match smallCaps all.

    Now to browse and use the switch... case loop

    I mean:

    //...
    switch (myFind[j].fontStyle) {
        case "Italic":
        case "Light Italic":
        case "LightItalic":
        case "Book Italic":
        case "Coursive":
              myFind[j].appliedCharacterStyle = myCStyle7;
              break;
        default:
              myFind[j].appliedCharacterStyle = myCStyle6;
              break;
        }
    //...
    

    Jarek

    (Changed; switch (myFind [j] .fontStyle))

  • How to create small caps with MS Word 2016 for Mac?

    I've scoured the forums Microsoft and Microsoft Help to get instructions on how I can make the small caps in Word for Mac 2016, but nothing helped. I would not have same subscriber to Microsoft Office 365 was not for the fact that I needed it for a freelance assignment.

    Any suggestions?

    Select the text. Go to the Format menu and click on fonts. In the police top dialog box where it says advanced font, click Font. In the effects section put a checkmark in front of the small caps.

  • When I press on DELETE opens the program of support for hp and shift caps lock is enabled...

    When I press DELETE button help HP and support the program opens and the caps lock is on, also when I press the superficial for example. left button "qe" appears and when I press the right button the calculator opens... my laptop is compaq presario cq57 running windows 7 home... Thanks in advance...

    Hello again jeffrey27.

    It is difficult for me to say what would be the price of disks (as much as you are in a country other than mine).  However, it should be a minimal cost and a good thing to have a system failure such as having to replace a hard drive.

    I don't think using another PC to create a recovery disk is an option.  The disks are specific system (it might have small differences in the two booklets), and also may not be valid under the license agreement for Windows.

    I think it's information about your location.

  • How can I set small caps in the character style

    I use the opportunity that you people are online:

    I'm trying to define small caps in the character style and it does not work,

    It works in the paragraph style, why is this? and is it possible around it?

    I can see the option in the character Styles: isn't it of menu drop-down available in your dialog box?

  • Small Cap with styles or fonts

    Hello

    If the document used with the attribute of small cap without using style fort and character style, alert need to this accident.

    Bad:

    Screen shot 2015-01-21 at 6.00.49 PM.png

    FIX:

    Screen shot 2015-01-21 at 6.01.26 PM.png

    Hi selvam214,

    Try the JS code below.

    var myDoc = app.activeDocument;
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.capitalization = Capitalization.SMALL_CAPS;
    var myFind = myDoc.findText();
    for(var i=0; i
    

    THX,

    csm_phil

  • Script to replace the small caps that are typed in capital letters with capital letters (A = &gt; a, B = &gt; b, etc...)

    I am looking for a way to replace the small caps that are typed in capital letters by their normal equivalents.

    I have a text that contains many names that should all be set in small capitals.

    In fact, they are, but because the letters are used for the first letters that they don't fit.

    In short: I would like to be able to look for A, B, c... (in small capitals) and replace them with (a, b, c...) in small capitals only once.

    (compare two tables?-> is this possible in indesign scripting)

    Hi Cramik,

    Try this.

    var doc = app.activeDocument,
        _char = doc.stories.everyItem().characters.everyItem().getElements();
    
    for(var i=0;i<_char.length;i++)
    {
            if(_char[i].capitalization == Capitalization.SMALL_CAPS)
            {
                    _char[i].capitalization = Capitalization.CAP_TO_SMALL_CAP;
                }
        }
    

    Kind regards

    Cognet

  • Why is InDesign uses fake small caps instead of the real ones included in the police?

    I tried to use the small caps Hoefler Text, I did by pressing the small caps button. Rather than use of true small capitals (which should be in proportion to the capitals), InDesign creates fake small caps by reducing the capitals (which is horribly ugly). I know that Hoefler Text includes real small caps because I can see them in the glyphs palette. How can I get InDesign to use true small capitals instead of creating the fake ones?

    Just checked the font file. "Hoefler Text" comes courtesy of Mac OS X, preinstalled with your system. It is an OpenType font with outline TrueType (actually a collection of four different styles in a single file), and typographic functions, including small caps charrington42 noticed in the glyphs Panel, are guided not by the OpenType features but by AAT Apple features.

    InDesign cannot use the features AAT; Only software specific Apple can. TextEdit, for example, real small capitals peut access:

    You may submit "Please support AAT" Adobe using the feature request form - I don't see anything against it. Or maybe just the fact that it is only applicable to a small amount of fonts and Mac OS X only.

  • Small caps ePub issue

    I'm working on placing the text in the ePub format and continue to operate in the same question.

    I want the title of the chapter to use small caps.  In InDesign, I have it look exactly the way I wish that it - '' Chapter One '' appearing with small capitals.

    I highlighted the expression '' Chapter One '' and applied a paragraph style that has the following characteristics:

    [no paragraph style] next [style]-Times New Roman-size: 24pt + needlepoint

    When I export to ePub to display the document in Adobe Digital Editions these changes are not present.  I have tried about everything the application of styles of characters and nested styles, but nothing works.  I want these appearances of small cap to work in versions ePub as well.

    Any thoughts on why it doesn't work?

    Any help is very appreciated.  Scouring the internet for some time didn't turn upward all the advice.

    Thanks in advance.

    Easy workaround solution. Map of H1 style and define H1 with small capitals in the CSS.

    But... I recalled that ADE is old enough and desperately needing an update. I would check the EPUB using something else. Even a web browser can be better.

    Bob

  • Small caps works do not all of a sudden

    Hello

    I have problems with a typeface in a pamphlet that I'm working on.  Earlier the saved file versions are fine, but I'm curious as to why all of a sudden, my "small caps" are not working in two character Styles and activating / disabling the option outside of the character Styles.  It only occurs with the font I want to use: Futura Std.  If I complete with Gill without, or something, it seems to work very well then.  What could cause this, and why it would work at the earliest versions recorded, but not my new packaged version?  It works with my plain "Futura", but not my OpenTypeface "Futura Std." thoughts?

    Screen shot 2011-05-11 at 11.36.08 AM.png

    Is there are folder named fonts in the Document in the same folder with a User.ID file? If so, make sure that you install CS5 7.0.4.

    Bob

  • Small Caps have disappeared

    Hello

    I have made about one and a half months there (with CS5) of InDesign files.

    When they were in fact they had with small caps text (font used were Arial and trebuchet), and they worked very well. Now, when I open these same files (which don't have not been published pending), small capitals are now show as ordinary text, and I can't get the small capitals to appear.

    This same behavior appears in cs5 mac and windows.

    What happened and how I can fix this?

    Best regards

    Johanna

    You compress work? Check the location of the file to a folder fonts - then delete the fonts folder (copy it to somewhere safe)

    This is a known bug.

    http://InDesignSecrets.com/document-fonts-feature-in-InDesign-CS5-appears-buggy-with-small - caps.php

  • The curse of the Small Caps

    (CS4 Mac Leopard) With each new document and each new text box, I draw in the document, the case shall be Small Caps. I tried to create the style of character with Normal case. But when I draw a new text box, the style is returned to [none]. [Standard paragraph] style is set at Normal case. I would have thought that would negate a character style.

    Any ideas on how I can fix this?

    Thanks in advance,

    Toni

    You will also find full file location information and instructions here: http://forums.adobe.com/thread/526990, but I'm not sure it's really a question of coorupt Pref.

    Petteri suggested, turn off the small caps on the control panel and also check the [standard paragraph] style with nothing open. This should fix the new files, but the existing files will set one at a time.

  • Using boxes TextInput to change small caps lettering with no....

    Using two TextInput (fName and lName) boxes that write at the same time on a text box, (FullName) BUT change the data here automatically to 'small Caps' characters WITHOUT spaces.

    I find all kinds of things, but nothing close enough. Any help would be appreciated!

    Thanks in advance aktell

    How about this:


    http://www.Adobe.com/2006/mxml"layout ="absolute">
       
            protected function name_changeHandler(event:Event):void {}
    var firstName:String = fName.text.toLowerCase ();
    var lastName:String = lName.text.toLowerCase ();
    fullName.text = firstName + lastName;
    }
    ]]>
       

       
       
       
       
       

    I think that's what you were asking.

    Chris

Maybe you are looking for