Use a font that is available in Windows fonts

Hi all,
I am creating a PDF document using the iText library and since I am writing plain text I want to use "Courier New" font. I use
FontFactory.getFont(FontFactory.COURIER, 10);When calling getFont("Courier New") it is not available. I work on WinNT4 and I have Courier New in the Fonts. FontFactory.getRegisteredFonts() does not contain "Courier New".
My question is how can I load that font so I can use it in my app?
Thanks in advance
Mike

It seems to be my misunderstanding of the problem.
in iText they have a Font class in the com.lowagie.text package and I have not noticed that it is not the java.awt.Font. When I use the GraphicsEnvironment to get the available fonts I have the Courier New.
But it seems that the problem is not in the font.
The real problem is that the file contains Cyrillic characters that are not displayed correctly when I open the PDF file after creating it/I read the text file that contains the text and put the body in a Paragraph/ so I wanted to use Courier New possibly with Cp1251 encoding to try if it will show characters properly.
What must I set in order to generate the PDF to show Cyrillic?
Thanks in advance
Mike

Similar Messages

  • Do IMAQ Cast Image or IMAQ Linear averages give different results when using different computers that are running under Windows XP ?

    Hello
    I'm currently developping an image processing algorithm using Labview 7.1 and the associated IMAQ Vision tools. After several tests, I found a weird result. Indeed, I put the labview algorithm - including the IMAQ VI on the library to get sure that I use all the time the same VI - on my memory stick and used it on two different computers. I tested the same picture (still in my memory stick) and had two very different results.
    After several hours trying to understand why, I found that there were a difference between the results given by both computers at the very begining of the algorithm. Indeed, I used a JPEG file.
    To open it, I first create an Image with IMAQ Create (U8). Then, I open it.
    Then in my first sub-VI, I use IMAQ Cast Image to be sure that the picture is a U8 grayscale picture.
    Right after that, I use the IMAQ Linear Averages. The results of this VI are different on the two computers.
    I tried several time on the same picture : one computer always give me the same result but the two computers give me a different result. So there is no random variable on the results.
    So my question is : Do IMAQ Cast Image or IMAQ Linear averages give different results when using different computers that are running under Windows XP ?
    My bet is on IMAQ Cast Image but I'm not quite sure and I do not undestand why. The labview and IMAQ are the same on both computers.
    The difference between the two computer are above :
    Computer 1 :
    Pentium(R) 4 CPU 3.20GHz with a RAM of 1Go. The processor is an Intel(R).
    The OS is windows XP Pro 2002
    Computer 2 :
    Pentium(R) 4 CPU 2.80GHz with a RAM of 512Mo. The processor is an Intel(R).
    The OS is windows XP Pro 2002.
    If anybody can help me on this problem, it would be really helpful.
    Regards
    Florence P.

    Hi,
    Indeed it's a strange behaviour, could you send me your VI and your JPEG file, (or another file that reproduces) so that I could check this inthere ?
    I'll then try to find out what's happening.
    Regards
    Richard Keromen
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Découvrez, en vidéo, les innovations technologiques réalisées en éco-conception

  • I WANT TO USE THE YOUTUBE TO MP3 CONVERTER,IS THERE A SPECIAL ONE FOR MAC OR DO I USE THE ONE THAT WAS MADE BY WINDOWS? I HAVE A MACBOOK PRO OX LION 10.4.7

    IS THERE A SPECIAL ONE FOR MAC,OR CAN I USE THE ONE THAT WINDOWS MADE? AS I DIDNT WANT ANY SOFTWARE ON MY MAC MADE BY WINDOWS.......I WANT TO USE THE YOUTUBE CONVERTER TO MP3,CAN SOMEONE LET ME KNOW PLEASE ,MANY THANKS SAM

    Check out what the new version of Crossover Mac - they have begun to add 10.8 support and some new apps, too.
    OP: PLS do not use CAPS in future.

  • I would like to have a password required before using Firefox as there is available with Windows Internet Explorer and Chrome.

    As it is known for every one the danger of the internet for kids with out parents watching them so I need a password.

    How do you require a password for IE and Chrome? (I think there is an add-on available to add this feature to Chrome.)
    If you have your children sign on to Windows using their own username and password, you can easily control which programs they run: http://windows.microsoft.com/en-US/windows7/Prevent-children-from-using-specific-programs
    I'm not aware of any startup password add-ons for Firefox, but there are filters available, such as [https://addons.mozilla.org/en-US/firefox/addon/foxfilter/ FoxFilter] (I haven't tried it myself).

  • Hi, I've a Power Mac (7200/120) and like to convert regional files into windows. English files are ok but am haveing problems with files that was written in Bengali version using Bengalics(font) I would appreciate ur help.s

    Hi, I'm new to this forum want help from you...
    I've a Power Mac (7200/120) & been using for almost 10 years. Now the light of the Monitor is fadeing within five min. I've huge files
    written in Bengali Language with a font named BengaliCS. I want to convert this files to Windows so that I can edit those files into
    window. I heard there are softwares that convert Mac to Window but don't know they can convert to regional language.
    I would appreciate if one can help me on this.
    thanks

    chand@007 wrote:
    I've huge files
    written in Bengali Language with a font named BengaliCS. I want to convert this files to Windows so that I can edit those files into
    window.
    You need to tell us A) what app did you create those files with? and B) what format are they in (.doc, .txt, etc)?
    It may be possible to just transfer the files and your font to another machine without conversion depending on how they were made.
    Where did you get the BengaliCS font?

  • I am trying to use automator to open a safari popup window that will automatically log me into whatever account and I attempted to type up an applescript that utilized the "System Events" function with no avail, any ideas?

    I am trying to use automator to open a safari popup window that will automatically log me into whatever account and I attempted to type up an applescript that utilized the "System Events" function with no avail, any ideas?

    Hi
    In iMovie'11 (version 9.0.x)
    on top menu row - Apple/iMovie/File/Edit/Cut (Can vary dep. on language - in Swedish Apple/iMovie/Arkiv/Redigera/Klipp . . . )
    down Cut menu - Slow playback/Raspid Playback/Re-play in Slow Motion and onvards
    Here one can select the Pre-Set speeds
    Are you familiar with getting 'inspector' to run?
    No - but I guess that Double Click on clip/sequense or ctrl-Click on it might open it.
    Yours Bengt W

  • Are the fonts that are available to me when I am using the free trial of InDesign less than when I use the purchased version of InDesign?

    Are the fonts that are available to me when I am using the free trial of InDesign less than when I use the purchased version of InDesign?

    Try to find out: When you install the Creative Cloud Desktop app, Click Assets, then click Fonts. Click Add Fonts from Typekit. If you can do that, you're in. Of course, you won't be able to use them more than 30 days unless you subscribe. (But fonts embedded in a PDF or EPUB file would be fine.)
    Those of us who are CC subscribers cannot test this out easily.

  • When I try to purchase a tune on itunes it takes me to the takes me to the payment window. I see a credit by my name. How can I use that credit available to me without having to be force to use my credit card or redeem a gift card?

    When I try to purchase an album on itunes it takes me to the takes me to the payment window. I also see a credit by my name in itunes. How can I use that credit available to me without having to be force to use my credit card or redeem another gift card?

    When I try to purchase an album on itunes it takes me to the takes me to the payment window
    It is asking to verify your info. Select None for the credit card.

  • In Firefox where do I find the setting: "Use LCD font smoothing when available"?

    I know there's a setting for this somewhere, but it's not in the options dialog under any of the tabs. Also, it would be nice to be able to control this via CSS or JavaScript. The issue comes up as FF seems to add a stroke to icon fonts when viewed in OS X machines.

    That in not a setting in Firefox, but in the Windows display (appearance) settings.
    If ClearType is enabled in Windows (and this is the default in Windows 7) then Firefox uses it automatically.
    *Control Panel > Personalization > Window Color and Appearance > Fonts > "Adjust ClearType text"
    *http://www.microsoft.com/typography/cleartypefaq.mspx
    See also:
    *Anti-Aliasing Tuner: https://addons.mozilla.org/firefox/addon/anti-aliasing-tuner/
    If there is a problem then try to disable hardware acceleration in Firefox.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *https://hacks.mozilla.org/2010/09/hardware-acceleration/
    You can also try to set the gfx.content.azure.enabled pref to false or if this didn't help disable Direct2D by setting the gfx.direct2d.disabled pref to true on the about:config page and leave hardware acceleration otherwise enabled.
    *http://kb.mozillazine.org/about:config

  • How do I use a font variation in a pages document. I no longer have the "viewer" -glyph option in special characters pane only new mbPro with Lion. I know the variation is available because I can see it in the font book. so now what I just want to be

    How do I use a font variation in a pages document? or other app for that matter? I no longer have the "viewer" - glyph option in the special characters pane (under edit  in toolbar). I know the varaition ia available because I can see it in my font book. I depended on that alot so I need to find a way to still use character and embellishments. I don't want to have to go back to my od computer (from2007) Please Help!

    I really don't understand.
    The menu item is available :
    Maybe, you didn't activate the tool :
    Yvan KOENIG (VALLAURIS, France) mardi 2 août 2011 23:10:17
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • So I just updated to the newest update that was available for safari and iTunes but now it won't let me go on the Internet using safari and  it also won't let me sync my songs ,,,,,it takes forever to back up my iPad AND my iPod so what can I do ?

    So I just updated to the newest update that was available for safari and iTunes but now it won't let me go on the Internet using safari and  it also won't let me sync my songs ,,,,,(it takes forever to backup my iPad AND my iPod) so what can I do ?

    If you're on windows try the following:
    This worked for me an hour ago and has allowed me to sync ok. Still haven't tried downloading the new version 5 to the phone yet as I'm still backing up photos etc just in case.
    1. Quit itunes
    2. Start an elevated command prompt (Start Menu -> All Programs -> Accessories -> right click Command Prompt -> Run as Administrator)
    3. Once in the command prompt type the following 3 words starting where your cursor is flashing: netsh winsock reset
    4. press ENTER
    5. Reboot your machine
    6. Restart itunes & connect device to sync
    7. Good luck  

  • Extra spaces added (that I can't get rid of) when using STHeiti font.  Anything I can do?

    Hi there,
    When I use the font that I want to use (STHeiti), extra spaces get added automatically—spaces that, by the way, I can’t ‘delete’—after every apostrophe (or single quotation mark).  See screen grabs below:
    Here's another example:
    Do you know how I can make these spaces go away?  When I do a search on the internet (InDesign STHeiti), I see that others have had other types of problems with this font… having to do with exporting a finished project to pdf and getting it printed. 
    In the context of talking about it, one person says that the STHeiti font "is installed as part of the Apple operating system, and is probably only meant for onscreen display".
    But someone else adds:  "the font is installed, by default, on all macs running 10.4 and above (possibly further back than that, but lets go with what we know), so opening the file at the printers on such a mac will have the font available”
    I'm on my Mac, though (not yet ready for the printer), so why do I have a problem using this font?
    I know I could use another font, but this STHeiti is a really nice one!
    Thanks for any advice,
    Malcolm

    Wow... that works beautifully.
    I've done it, but before proceeding too much further I'll google and try to find out more about this "Use Typographer's Quotes" setting.  Don't want it to bite me down the road.
    Thanks very much for the tip—
    Malcolm

  • I am trying to find an old mac font.  It's the techno (apple) font that was available with OS 9.  How can I get this font?

    I am trying to find an old mac font.  It's the techno (apple) font that was available with OS 9.  How can I get this font?

    I think that was Tecno. Techno appears to be a whole class of fonts.
    Is this the one? http://www.dafont.com/tecno.font
    That's a .ttf version which should work OK with current OS.
    As an aside, I was searching for Apple Textile for quite some time when it was pointed out to me that it was used by iDVD. Sure enough, opened up the installer package for iDVD with Pacifist and there it was. Now working fine on all my Macs!

  • I have a full Team subscription to Creative Cloud, but type kit does not allow me to use some fonts. Do I have to pay extra to have more fonts available to me?

    I have a full Team subscription to Creative Cloud, but type kit does not allow me to use some fonts. Do I have to pay extra to have more fonts available to me?

    Hi drewacg,
    I'm sorry that you ran into trouble with this.  Are you the administrative contact on your Creative Cloud team subscription?  The admin user doesn't receive the same set of services as a full seat, so you will have a Typekit Trial plan instead of the Portfolio plan.
    You have the option of upgrading to the Portfolio level, though. If you would like to do that:
    1) sign in at https://typekit.com/login with your Adobe ID and password
    2) visit typekit.com/plans, and select the "upgrade" option underneath Portfolio
    Your Typekit plan upgrade will be billed separately from your Creative Cloud payments. The Portfolio plan is $49.99/year.
    I hope that this helps!  If you have any questions, please feel free to send your Adobe ID information to [email protected] and we can look into it further for you. Best,
    -- liz

  • I get the following message when installing 11.0.5 "The feature you are trying to use is on a network resource that is unavailable" for windows install

    I get the following message when installing 11.0.5 "The feature you are trying to use is on a network resource that is unavailable" for windows install

    I just found a way to get Fixit to Run.  Go to http://support.microsoft.com/fixit/ and then pick "Install or upgrade software or hardware" and run Fixit from the "Run" button on the webpage.  I just picked run, instead of save, and ran it directly from the web page for each of the apple software.  If the window doesn't come up full size, hit "Tab" twice and then "Return".  You'll be able to see the prompts from there.  Have it attempt to uninstall iTunes on its own.  Repeat the process for any of the other Apple products, including Bonjour and iCloud.  Then, go to the iTunes website and install from there.  I had a downloaded copy and installed from there, but it came up with an error about missing the apple help, or something like that.  It allowed me to uninstall, and I reinstalled direclty from the website, and it all works now.

Maybe you are looking for

  • Default directory for FIle Manager

    Hi, I am working on file manager for my final year project. I am using jsp, Tomcat and Linux as OS. The question is, "Is there any way to authenticate users from OS(linux or windows 2000) and how can i set user home directory(e.g. home/sahsan/) to my

  • Issue with RSS Feed Service-Urgent

    Hi, 1. I am using the service provided by UCM for using extracting details from the RSS feed.I tried using the service with a RSS feed url i.e.("http://rss.news.yahoo.com/rss/topstories") works fine and displays all results on my custom page. 2. The

  • Basic TableUI element to Reset Data in WEbDynPro For Java

    Hi Experts, I am new to webdynPro for java . Can anybody plz help me out. i wrote the following code to retrieve data from DB. which is working very much fine. public void onActionGetRecords(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

  • Printing files displayed in a finder window

    Wondering if its possible, I am burning allot of dvds and i wanted to print lists of what was on them for cataloging purposes. When simply in a finder window, the print function is disabled, other than taking a screen shot and printing the picture of

  • Volume Fader and Sends have only 128 Steps Resolution ?????

    Hi . I Notice that the Volume Fader and Send´s have only 128 Steps Resolution ????? To avoid of the REAL problem you can use the Gainer Plug in and you will get 0.1db Steps for Volume with mouse wheel support... Why is this not fixed yet...Is Logic P