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.

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

  • 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

  • Custom report - Can't customize font / table width etc

    So i'm authoring my first report - that works fine; however I can't seem to figure out how to customize the font / table width etc. I'm creating an RDL file from Report Server Project Wizard in Visual Studio and in there i'm changing font sizes and table
    widths and I can see its changing in the RDL file's XML. I then plug the RDL file into my managment pack and import it. I run the report and the results always have this huge font and the table widths don't change. Anyone have any idea what i'm missing or
    why that would be happening? heres the RDL file for reference:
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Textbox Name="textbox1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Report1</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>12pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>SteelBlue</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox1</rd:DefaultName>
    <Height>0.36in</Height>
    <Width>5in</Width>
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    <Tablix Name="table1">
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>2.75in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>3.58333in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.22in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox2">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Raised Date Time</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>6pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox2</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox3">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Alert Name</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>6pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox3</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox4">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Alert Description</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>6pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox4</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    <TablixRow>
    <Height>0.21in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="RaisedDateTime">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!RaisedDateTime.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>5pt</FontSize>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>RaisedDateTime</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="AlertName">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!AlertName.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>5pt</FontSize>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>AlertName</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="AlertDescription">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!AlertDescription.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>5pt</FontSize>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>AlertDescription</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember />
    <TablixMember />
    <TablixMember />
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <KeepWithGroup>After</KeepWithGroup>
    <RepeatOnNewPage>true</RepeatOnNewPage>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    <TablixMember>
    <Group Name="table1_Details_Group">
    <DataElementName>Detail</DataElementName>
    </Group>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    <DataElementName>Detail_Collection</DataElementName>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <DataSetName>DataSet1</DataSetName>
    <Top>0.36in</Top>
    <Height>0.43in</Height>
    <Width>7.33333in</Width>
    <ZIndex>1</ZIndex>
    <Style />
    </Tablix>
    </ReportItems>
    <Height>0.79in</Height>
    <Style />
    </Body>
    <Width>8.1875in</Width>
    <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSources>
    <DataSource Name="DataWarehouseMain">
    <DataSourceReference>Data Warehouse Main</DataSourceReference>
    <rd:DataSourceID>e4235c51-407f-4065-8519-a1e57374bc45</rd:DataSourceID>
    </DataSource>
    </DataSources>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataWarehouseMain</DataSourceName>
    <QueryParameters>
    <QueryParameter Name="@AlertName">
    <Value>=Parameters!AlertName.Value</Value>
    </QueryParameter>
    <QueryParameter Name="@StartDate">
    <Value>=Parameters!StartDate.Value</Value>
    </QueryParameter>
    <QueryParameter Name="@EndDate">
    <Value>=Parameters!EndDate.Value</Value>
    </QueryParameter>
    <QueryParameter Name="@ObjectName">
    <Value>=Parameters!ObjectName.Value</Value>
    <rd:UserDefined>true</rd:UserDefined>
    </QueryParameter>
    </QueryParameters>
    <CommandText>SELECT dbo.vManagedEntity.FullName,
    dbo.vManagedEntity.TopLevelHostManagedEntityRowId,
    dbo.vManagedEntity.ManagedEntityRowId,
    Alert.vAlert.ManagedEntityRowId,
    Alert.vAlert.AlertName,
    Alert.vAlert.AlertDescription,
    Alert.vAlert.RaisedDateTime
    FROM dbo.vManagedEntity
    INNER JOIN Alert.vAlert
    ON dbo.vManagedEntity.ManagedEntityRowId = Alert.vAlert.ManagedEntityRowId
    WHERE dbo.vManagedEntity.FullName LIKE '%' + @ObjectName + '%'
    AND Alert.vAlert.AlertName LIKE '%' + @AlertName + '%'
    AND Alert.vAlert.RaisedDateTime &gt;= @StartDate
    AND Alert.vAlert.RaisedDateTime &lt;= @EndDate
    ORDER BY Alert.vAlert.RaisedDateTime DESC</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="AlertName">
    <DataField>AlertName</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="AlertDescription">
    <DataField>AlertDescription</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="RaisedDateTime">
    <DataField>RaisedDateTime</DataField>
    <rd:TypeName>System.DateTime</rd:TypeName>
    </Field>
    <Field Name="ObjectName">
    <DataField>ObjectName</DataField>
    <rd:UserDefined>true</rd:UserDefined>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <ReportParameters>
    <ReportParameter Name="AlertName">
    <DataType>String</DataType>
    <Prompt>Alert Name</Prompt>
    </ReportParameter>
    <ReportParameter Name="StartDate">
    <DataType>DateTime</DataType>
    <Prompt>Start Date</Prompt>
    </ReportParameter>
    <ReportParameter Name="EndDate">
    <DataType>DateTime</DataType>
    <Prompt>End Date</Prompt>
    </ReportParameter>
    <ReportParameter Name="ObjectName">
    <DataType>String</DataType>
    <Prompt>Object Name</Prompt>
    </ReportParameter>
    </ReportParameters>
    <Language>en-US</Language>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>4250ddf1-3c87-47b1-b8c2-314aad86ad86</rd:ReportID>
    </Report>
    Any suggestions would be greatly appreciated. Thanks!

    I did some digging and found a link that might help you/have an answer.
    http://stackoverflow.com/questions/14850503/change-default-font-ssrs-visual-studio
    https://connect.microsoft.com/SQLServer/feedback/details/574003/modify-the-default-font-family-for-sql-server-business-intelligence-development-studio-while-creating-a-report#
    If you click on work around someone posted that they were able to modify the default font in visual studio.
    "If I am not mistaken, you can update your Report.rdl template file in visual studio
    to use the default font you wish to use.
    navigate to this location (where x is your visual studio version):
    C:-\Program Files\Microsoft Visual Studio x\Common7\ide\PrivateAssemblies\ProjectItems\ReportProject
    copy report.rdl to an already created report project. 
    Add the report to your report project
    Update the default font where applicable.
    Copy the updated report.rdl back to the location above and that is it.
    The next time you open your project, you will be using the update rdl file as your
    template. 
    You can do this as many times as you want.
    Use this link as a reference
    http://weblogs.sqlteam.com/jhermiz/archive/2007/08/14/60283.aspx
    Cheers,
    Martin
    Blog:
    http://sustaslog.wordpress.com 
    LinkedIn:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

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

  • The HP C4480 all in one series PRINTER that I got free with my i-Mac is printing TINY print despite that my computer is set at 13 font Helvetica. How to reset the printer to normal print?

    The HP C4480 all in one series PRINTER that I got free with my i-Mac is printing TINY print despite that my computer is set at 13 font Helvetica. How to reset the printer to normal print?

    Is the Paper Size: set to US Letter and Scale: set to 100%
    Dennis

  • Editting PDF documents that were created by a MAC doesn't work because of font incompatability.  How can we get MAC fonts and load in our Adobe Acrobat Pro 9?

    Editting PDF documents that were created by a MAC doesn't work because of font incompatability.  How can we get MAC fonts and load in our Adobe Acrobat Pro 9?

    If it's a Mac font and you're on Windows, you can't. If you are also on a Mac, you'll need to purchase the fonts (fonts are generally non-transferable, like software. One of the reasons pdf exists), install them and try your edits.
    But it's best to edit the original document and create a new pdf when finished.

  • Chinese and Japanese font / character still cannot display in AIR 13.0 or 14.0.0.103, Android 4.4.2

    Hi there,
    Chinese and Japanese font / character still cannot display in AIR 13.0 or 14.0.0.103 , Android 4.4.2
    Korean font is OK.
    Any ideas??
    Thanks!
    Contra

    Could you please open a new bug report on this over at bugbase.adobe.com?  When adding the bug, please include sample code or an application so we can quickly test this out internally.  If you'd like to keep this private, feel free to email the attachment to me directly ([email protected]). 
    Once added, please post back with the URL so that others affected can add their comments and votes. I can also follow up once I get the bug number.

  • Glyph panel not displaying font character sets in cs5.5

    Hi
    I'm having issues with accessing font character sets & glyphs in ID cs5.5.
    I have all my fonts in fontbook and can see the full font character sets displayed but
    when I go to my glyph panel to access any additional character or glyphs sets there
    is nothing displayed. Any idea where I'm going wrong?
    Thank you

    You potentially have a "bad" font. Check your fonts and remove the offender.
    Mylenium

  • Optical character recognition--how do I scan a document to text I can edit.

    Optical character recognition--how do I scan a document to text I can edit?

    You first scan the document to a PDF. Then you run OCR from within Acrobat. Depending on your setup, the OCR may be run automatically.
    If you want to edit so the changes show on the screen, you will need to use ClearScan. The other two searchable options put the OCR text in a layer behind the image of your original document.

  • CS4 Dreamweaver: Old tags (font, size, etc) -- HOW?

    CS4 Dreamweaver Mac: Old tags (font, size, etc) --> HOW do I do these? Is there a plug-in?
    Note: I do NOT want to create a style sheet everytime I want to add a line to one of 2,000 existing pages. Please don't reply with "those tags are deprecated", because there are a billion pages that still use them, thanks.

    pziecina wrote: It is on the left side of the properties panel at the top, ensure that the html is selected and not the css for the properties panel. The wording 'Targeted Rule' is above the button the says 'Edit Rule'.
    Not on my screen; no "Edit Rule" or "Targetted Rule"

  • When I download a PDF, a user manual for instance, the page is black and the font is green, how do I change this to a white page and black script?

    When I download a PDF, a user manual for instance, the page is black and the font is green, how do I change this to a white page and black script?

    Try opening it with Adobe Acrobat Reader. 
    Note: Appleworks is the Apple office like application that stopped being able to run with Mac OS X 10.6.8.  If you have a question particular to 10.9, I would ask in the 10.9 (OS X Mavericks) forum.

  • Loaded OfficeforMac2011 on OS10.5.8; software won't launch because of font problem. How do I find and remove offending fonts?

    Loaded OfficeforMac2011 on OS10.5.8; software won't launch because of font problem. How do I find and remove offending fonts?

  • Specifying the Character Width or Height of a font

    I have a Flex SDK 4.5.x and ActionScript 3.0 application that I am working on that contains Label, TextField and RichEditableText fields.  In our application, I need to be able to specify the font and point size that will be used to display each of the above.  This part is easy and not an issue.  The problem we are experiencing is a secondary requirement that I must be able to change the average width or height of a character from what the font / point size default is.  For instance, if I have a Text display object configured with Arial TTF and a point size of 16, the default average character height and width are 0.222 and 0.121 inches respectively.  I need to be able to change the font height and/or width of the default average character resulting in a Text display object that is correctly stretched in the respective height / width direction.

    Not that I know of. Searching for "prefWidth" in the CSS documentation yields no results. JavaFX layout is typically not managed by CSS, but by FXML and/or Java. You can set the prefHeight and prefWidth as attributes in the FXML file:
    <ListView fx:id="..." prefWidth="130" prefHeight="100" ... />or in Java:
    ListView<String> listView = new ListView<String>();
    listView.setPrefWidth(130);
    listView.setPrefHeight(100);

  • I can't change my font from the character menu, how do I fix this?

    Basically, the only way I can change my font is through the Type>Font menu up top (and by right clicking), but the list in the character palette and the control bar are empty. I can type in the name of the font I want and it will complete it, but even then it doesn't change anything. It is really inefficient for me to have to scroll through all the fonts every time, especially when I have no idea what font I want (or if the one I want is at the bottom of the list).
    It started doing this just out of the blue a few months ago, before then it was working fine, no idea what set it off. I can't print from Illustrator either, maybe it's part of the same problem (that started earlier).
    My version is CS2. Windows XP. I don't think that my boss is going to upgrade either in the near future. It's a small company, we don't have IT help.
    I've done some searching and have already tried:
    -uninstalling the old Illustrator 9 that was on here
    -deleting the aiprefs file
    -deleting the entire folder it was in
    -deleting all of the Adobefnt*.lst files I could find
    -restarting Illustrator, the computer several times
    I haven't tried reinstalling Illustrator yet. Don't know where the CD is, so it's a last resort.

    Oh dear. It looks like I have made things much, much worse.
    (I did indeed do my deleting with Illustrator closed, and tried moving before deleting)
    I opened it up again and did some work. I tried saving my file (in .ai format, variety of shapes, layers, fonts), when it told me that an unknown error occured, then another message that said something like "Can't finish previewing, not enough memory ID=-108", and then it crashed. Turns out that now it doesn't like fonts at all and it isn't too keen on shapes either.
    Found the CD. Uninstalled CS2, told it to delete my preferences file but keep the computer activated. Killed Adobe reader while I was at it (haven't reinstalled yet). Looked through my program files for any traces it left behind but didn't see anything (under Program Files>Adobe, and Documents and Settings>Application Data>Adobe). Restarted the computer and reinstalled Illustrator (well, I tried repairing first but that didn't do anything). And nothing has changed. Still can't access the fonts, and now I have errors opening/saving files too. There was another, new error, something something 6654 I believe.
    I'm baffled.

Maybe you are looking for

  • CS5.5 page palette - , instead of - between pages

    Hello, I am a newbie. I made a masterpage A-PL (see also inserted figure). I inserted a new page before page 2 and in the tool palette there is a "," instead of a "-" between page 1 and 2. I already copied the text (great table with cross-references)

  • Data Merge - Not removing blank lines when more than one in a row

    I am having the same problem as mentioned here: http://forums.adobe.com/message/2109531#2109531  That post is for some reason set as "answered" though the poster said the latest update did not resolve the issue.  Has anyone found a solution to this i

  • Display adapter randomly resetting

    I'm having two issues which may or may not be related. My display adapter keeps resetting itself. Sometimes it works and I can continue working.other times I get a screen full of vertical lines and have to reboot. The computer will also not bout or r

  • Long Text Icon in CATS Timesheet Approval View

    Hi: Employee created a timesheet in ESS. He/she also keyed in some long text in the timesheet screen. When manager goes to the UWL to approve the timesheet, there is no icon to show that there is a long-text attached to the record. May I know if ther

  • Need a help on implemening SAML with Oracle Service Bus

    We are implementing Webservice security using SAML with Oracle Service Bus for our project. We are in dire need of help in implementing the same. We have found some documents (osb console help, osb security) from the oracle web site but those documen