Fixed character width font

Hi All,
1.
In SAPScript i m using the font
ANDALE_J Size 8
This font is NOT 'Proportionate Spacing'
ie. It is fixed character width font
as per the definition.
2.
In preview, the alignment of data
&field1(35)& &field2(15)&  &field3(25)
is seen perfectly OK.
(multiple rows in detail data)
3.
But when printout is taken, the
data is not printed as per alignment
seen on the screen.
Can anybody guide & help.
Regards,
Amit Mittal.

This means that the font you are using is not available for the device type used by the output device (printer) you are using.
Check transaction se73.
Select Printer fonts -> Display -> double click on the device type for the output device you are using and verify if the font family <b>ANDALE_J</b> size <b>080</b> is listed.
If it is not, use one that is available or ask the system admin to install the font for the device type and in some cases on the printer as well.
Rishi

Similar Messages

  • Reading TrueType Font character widths including kerning

    Okay, here it is: Since getStringBounds() and stringWidth() deliver incredible unprecise values and Sun apparently doesn't really care to fix this, I need to read the kerning information of a true type font manually.
    What I have is a field that is formatted as "width is 3.5cm" and its content is "Yo folks, this rocks" or something like that. What I need to do now is to measure whether the text (the content) really matches the field's size (3.5cm) or needs to be wrapped or cut.
    getStringBounds() and stringWidth() simply delivers crap as results, since Sun's rasterizer apparently completely ignores the kerning information and simply counts the character widths together (see: http://forum.java.sun.com/thread.jsp?forum=20&thread=421610).
    So, does anyone have a clue on how to read TTF fonts directly and measure a font using the information that is already contained in the TTF file? And please, I know that Sun's rasterizer is system independant, but that' doesn't help me any single bit and waiting for Sun to perfect their rasterizer is out of question as well.
    I shall award the author of the best clue or hint into the right direction (hey, after all, maybe I oversaw something (nope, setting KEY_FRACTIONALMETRICS doesn't count, that still returns the wrong results, although they're better and more precise than without them <g>)) with ten Duke bucks.
    Thanks a lot (and sorry for the language)

    I have a starnge feeling that this may be partly to do with the size
    of the font you are using. For Ariel plain I got the following size
    10 point=     374
    This is the actaul width of the text (in pixels) as displayed.
    My monitor is 78.818 dpi. so converting this to 72 dpi = 341.65
    at 96 dpi this is 455.5.
    The following code was used (It shows the mouse position)
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    public class Fonts extends JFrame{
      private static final String text =
    "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
      JTextPane jtf;
      StyledDocument doc;
      public Fonts(int pSize) {
        super();
        doc = new DefaultStyledDocument();
        jtf =new JTextPane(doc);
        jtf.setText(text);
        Font f = new Font("Ariel",Font.PLAIN,pSize);
        jtf.setFont(f);
        getContentPane().add(jtf);
        jtf.addMouseMotionListener(new MouseMotionAdapter(){
            public void mouseMoved(MouseEvent me) {
              System.out.println(me.getX()+" "+getY());
        setSize(800,600);
      public JTextPane getTextPane() {
        return jtf;
      public static void main(String[] args) {
         Fonts f = null;
         try {
           f = new Fonts(Integer.parseInt(args[0]));
           f.setVisible(true);
         }catch(Exception e) {
            System.out.println("Please enter a valid point size");
            System.exit(1);
        try{
         Rectangle start = f.getTextPane().modelToView(0);
         Rectangle end = f.getTextPane().modelToView(text.length());
         System.out.println("point size "+args[0]+"\t"+(end.getX()-start.getX()));
        }catch(Exception e) {
          e.printStackTrace();
    }matfud

  • Font Character Width How ?

    I have a text area and need to place a guide at a certain
    character offset but don't know how to calculate the pixel width
    that text will occupy. The text is not typed yet; I need to place
    the guide before any text is input. I use a fixed width font only
    (courier). Any suggestions ?

    I am using Text Layout Framework 2. I have drawn text field using TextFlow and container controller.

  • How can i change standard font and fixed-width font in ipad 2?

    i need to change standard font and fixed-width font in my ipad 2, but i can not find safari setting menu. it is alower me to change that?

    Sorry, the font is not user selectable in Safari on iPad, like it might be on a desktop.  You can change the font size, but not the actual font.

  • Problem with printing perfomance when using a fixed width font

    Hello.
    I'm using the java.awt.print.Printable interface for printing text.
    Everything works fine when I choose a font like Serif.
    When I choose a fixed width font, like Courier, the printing becomes too slow!!!
    Any Idea?
    My code looks like that :
    private int sizeFont = 10;
    private font myFont = new Font ("Courier", Font.PLAIN, sizeFont);
    public int print(Graphics g, PageFormat pf, int indice)
    Graphics2D g2=(Graphics2D)g;
    while(myCondition){
    g2.drawString(myString,0,0);
    g2.translate(0,this.sizeFont);
    return Printable.PAGE_EXISTS;

    If it interests someone, I have found a solution :
    do not use "Courier", but "Courier New" .

  • Fixed width fonts

    How do I tell if a given Font object is a fixed width font?
    I've tried the closest I could find:
    Font f; ...
    FontMetrics m = getFontMetrics(f);
    if (m.hasUniformLineMetrics()) {
    but that apparently wasn't even close. Any ideas?
    Thanks,
    Nathan Kronenfeld

    This is how i done it once,
        Font f; ...
        FontMetrics m = getFontMetrics(f);
        int cW = m.charWidth('W');     
        int cI = m.charWidth('.');     
        if (cW == cI)
        }

  • How to find fixed width fonts?

    Hi! I want to retrieve a list of all available fixed width fonts (e.g. Monospaced) on the user's system.
    I tried the GraphicsEnvironment() class and stepped through the result of getAllFonts(). I compared the widths of the chars per font if they differ... No success. Some fonts are filtered but not all.
    On windows systems you can get a font metrics info with a type like 'Symbol', 'Fixed', 'Non fixed' etc.
    Is there something comparable in Java?
    Thanks in advance,
    Jan

    Here's some code based on jsalonen's suggestion. It prints the font if M and i are the same width.
       public static void main(String[] args) {
          GraphicsEnvironment ge=GraphicsEnvironment.getLocalGraphicsEnvironment();
          Font[] s=ge.getAllFonts();
          Canvas comp=new Canvas();
          for(int i=0;i<s.length;i++) {
             int f1=comp.getFontMetrics(s).charWidth('i');
    int f2=comp.getFontMetrics(s[i]).charWidth('M');
    if(f1==f2) System.out.println(s[i].getName());

  • [iPhone] [Bug] Fixed Width Fonts Aren't

    Aren't fixed width, that is. I imagine they're still fonts. =)
    Recently I've been doing some ASCII art applications on the iPhone and I've noticed that things don't render the way I expect. I threw together some quick demonstration images of boxes rendered with fixed width fonts in TextMate.app and then on the iPhone simulator to show the difference. Although I used TextMate.app, similar results were found using TextEdit.app.
    First some boxes rendered in the fixed width font Monaco 12 pt in TextMate.app
    The first is a large 6x6 box with an interior of 5x5 spaces.
    The second box uses tabs. This is not an important box really--it's expected that different apps use different lengths for tab. In fact, this box looks completely different in TextEdit.app where the tabs are much wider. Don't worry too much about box number 2.
    The next box is a 3x3 box with one space in the center, and the last box is a 4x4 box with... well, you get the idea. Note how all boxes render as squares correctly.
    Now here's an image of the same boxes rendered with Monaco 12 pt on the iPhone's UITextView:
    Some problems are immediately visible. White space has some width, but it's far too small. I'm not too concerned about the tabs (box #2) since as I said above, I expect some variance in tabs, but the rest are pretty bad, especially box #3 whose single space looks positively anorexic. I focus a lot on white space here, because it's notable, but also notice that the + is wider than either the - or | as well.
    The Monaco font on the iPhone is not fixed width.
    The situation with Courier 12pt is slightly better but still has issues:
    Courier 12 pt on TextMate.app:
    Courier 12 pt on the iPhone:
    Unlike Monaco this is almost correct. Ignore box #2 again--I don't expect tab to work out. Courier doesn't have the same issue Monaco has with most characters. |, +, and - are all taking up the same width. However, as the boxes grow larger (Boxes 3, 4, and 1), the consecutive spaces start to show more and more how they're slightly too thin. It's barely perceptible in box 3, noticeable in box 4, and impossible to miss in box 1.
    It looks like the Courier font on iPhone has a space which is too narrow to be fixed width.
    As far as other things to try: I tried this with Andale Mono and Courier New as well with similar results. Also, although I've used a UITextView here, it also happens if you render a UIWebView containing the boxes inside of <pre> tags as well as outside of <pre> tags but use   for spaces.
    Has anyone else seen this phenomenon? Is there a fix or something I'm missing? Or is this a bug?
    Thanks!

    Bump. =(

  • Please fix the Illustrator Font menu(s)

    I can't find any real discussion on this subject anywhere, so hopefully it's not an over-repeated gripe, but why has Adobe through many iterations of Illustrator CS not migrated the Photoshop and InDesign font menu systems to Illustrator? As a creative designer who uses Illustrator as much as any other CS program, I find the font menu in Illustrator to be unbelievably user-unfriendly. Having either a Type > Fonts menu which you can't scroll through at will (no scroll bar, just slow buttons), or having a Character pane font list with no font previewing in it (I use Windows 7) doesn't make any sense. Unless there's some Illustrator menu preference table somewhere where I can set these options, it's time to fix this chronicly repeated design flaw that persists through every version of the software... please.

    why has Adobe through many iterations of Illustrator CS not migrated the Photoshop and InDesign font menu systems to Illustrator?
    Code is code and different host APIs require different code. And especially an old hag like AI is going to require a lot of work to adapt even the tiniest bit of resonably contemporary code because the program is so hopelessly behind the curve in too many areas. It sucks, but it's just this way and in light of it's more serious deficiencies like the extremely bad memory handling, this kind of thing is probably one of the lesser inconveniences/ annoyances...
    Mylenium

  • Character widths in JTextPane

    Hello everybody
    I write a WYSIWYG Report-Editor. My Problem is that the character-widths in the Editor is different to the Output (rtf,pdf).
    For Exaple in the Editor i can write 45 w's (Arial,plain,11) in one Line an in the Output is was 57. With Times New Roman i can write 64 ant in the Output is possible to set only 57 in one line.
    So i have write an own BoxView for the TextPane and set int the paint method "g2D.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,RenderingHints.VALUE_FRACTIONALMETRICS_ON)" The result is that the characterwitds are identic to the output but the caretpositions in the editor are wrong.
    Then i try to set putProperty("i18n", Boolean.TRUE) in the document. The result is that the characterwidts are equals the the version without fractionalmetrics->ON.
    What can i do?
    Thanks Thomas

    Thank You for the tip
    I overwrites the getFontMetrics Method in the JTextPane
    @Override
    public FontMetrics getFontMetrics(Font font) {
    Graphics graphics = getGraphics();
    Graphics2D g2d = (Graphics2D) graphics;
    if(g2d == null){
    return super.getFontMetrics(font);
    g2d.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,RenderingHints.VALUE_FRACTIONALMETRICS_ON);
    return g2d.getFontMetrics(font);
    It works!

  • How to fix the width of sorting column about adf table ?

    I develop project with ADF in jdeveloper.
    When click on the sorting column header in adf table,it will adjust the width of the sorting column header.It will make page shifting.
    How can I do to avoid the adjusting ?
    How can I do to fix the width of soting table header?
    Any hint will be appreciated.
    Thank you!
    Message was edited by:
    user618145

    I have set the column width like this:
    in style.css:
    /** Column Settings **/
    af|column::header-text
    background-color:#F0EDE1;
    color:#000000;
    font-family:Arial,Helvetica,sans-serif;
    font-size:12px;
    font-weight:bold;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 3px;
    padding-bottom:3px;
    border-color: #B5B5B5;
    WIDTH: 120px;
    af|column::sortable-header-text
    background-color:#F0EDE1;
    color:#000000;
    font-family:Arial,Helvetica,sans-serif;
    font-size:12px;
    font-weight:bold;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 3px;
    padding-bottom:3px;
    border-color: #B5B5B5;
    WIDTH: 120px;
    and in jsp page,write like this:
    <af:panelBox text="test" width="1000" background="dark" >
    <af:table emptyText="" value="#{ftOverview.listOfTransefersVect}" var="transfers" width="100%" banding="row" bandingInterval="1">
    <af:column sortable="true" sortProperty="transactionId" headerText="#{resources['ft_overview.ref']}" formatType="text" width="39"
    noWrap="true">
    <af:outputText value="#{transfers.transactionId}" escape="false"/>
    </af:column>
    </af:table>
    </af:panelBox>
    but it seems doesn't work well.

  • Need to fix the width of a column in interactive report

    Hi,
    I have a column named 'Comment'. Its have a huge data due to which the lenght of that column in interactive report get increased. I need to fix the length to a desired value.
    I used following code in Region Footer:
    <style>
    table.apexir_WORKSHEET_DATA td[headers=COMMENTS] {
      _width: 300px;
      min-width: 50px;
      max-width: 300px }
    </style>
    Its solved the problem by fixing the width of the column but the column is not showing the full data now. It is hiding most of its part to fit it in that column.
    Please give some idea.
    Thanks,
    Chandru

    Hi,
    I believe you will want to add a height specification to allow for multiple lines.  And you may want/need to specifiy how you want lines to wrap.
    Add (for example):
      height: 60px; 
      white-space: nowrap; 
      word-wrap: break-word;
    There are defaults and several options for white-space and word-wrap.  You may want to look them up and give them a try for comparison.
    Howard

  • Is it possible to have a fixed column width and a URL link?

    I am trying to achieve having a popup link on a column within a SQL report but also have the report column a certain width. I can have either or however not at the same time.
    What I did was created a SQL report, edited a column and gave it a URL redirect (page in application) as normal.
    For the fixed column width, I used:
    <div style="width:250px; height:54px; overflow:hidden" title="#Comments#">#Comments#</div>On Column Formatting / HTML Expression
    And for the popup URL, I used:
    onclick="window.open(this.href,'_blank','resizable=0,scrollbars=0,width=650,height=300,menubar=0,location=0');return false;" title="Comments"On the Column Link / Link Attributes

    Andy thank you for your reply, however I either am not completly understanding or there is a problem elsewhere.
    I have changed to the code to fit the needs of the application as so:
    !http://i41.tinypic.com/2m6mrh4.jpg!
    App ID: 523
    Page: 23
    Item: P23_STATUS_COMMENT
    Column to select: Comments
    Whenever clicking on the link, the following error is given:
    Expecting p_company or wwv_flow_company cookie to contain security group id of application owner.
         Error      ERR-7620 Could not determine workspace for application ().{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Font Title Not Displaying in Character Panel Font Menu

    Just updated to OS X Yosemite and noticed that the font titles don't display in the Character Panel > Font Menu.  However, they do display when rolled over with the cursor.  This is only happening in Illustrator.  All other Adobe apps are correctly displaying font titles.  Anyone else having this problem?
    Using Adobe Illustrator CS5.1 / Mac OS X Yosemite

    fonts, björn, scott,
    Unless three step reinstallation helps, you may wish to roll back from Yosemite and wait to see whether the issues will be solved and reported as such.
    Weeding out in older plugins seems to have helped some in some cases. It also seems that JAVA Runtime may be involved, for some it seems to help to roll back to an ealier version, for others to update to the newest.
    All the above is more or less hearsay so far, with no definite final confirmation.
    In any case, there is something to be sorted out by someone.

  • Fixing the width of a column in a pivot table.

    Hi,
    I have a report with a pivot table view.
    In that pivot table i have a column called category and a measure called Amount.
    My issue is, i need to fix the length of the the measured column to particular extent like $111,111,111,111.11 (Bold) for all the columns.
    I went to Format Values for that column and add width=50 in the additional charting options.
    But it's not reflecting for all the columns.
    Is there any other way to resolve this one.
    Thanks,
    chinna.

    Hi,
    Thanks for the quick response.
    I tried to fix the width of a column by putting 20% ,30% ....suggested by you.But it's not reflecting in the report.
    is there any other way?
    thanks,
    chinna

Maybe you are looking for