StarOffice 8 - finding all different font types in a Writer file

Hello,
I am currently using StarOffice 8 on a Windows XP system.
I frequently transfer a large Writer (.odt) file between different computer systems as I constantly update the file with new information. As part of the updates, I use different fonts. As I install a particular font on one machine, this font may not be installed on another machine when I add new information to the file on that particular machine.
When I open the Writer file on a machine that has some font not installed, the WYSIWYG appears incorrectly (since the proper font is not installed on that computer, of course) but if you highlight the incorrectly-displayed info, it says what the font type should be (ie, "WP Hebrew David" font). I then go online to download that specific font type for this the computer. Then the data is displayed correctly.
When you have many, many different font types used in a file, it is hard to keep track of all different fonts used. Before anyone questions me on using so many different fonts in a file, it is important for my file to visually display the correct data, and this means using a quantity of fonts.
What I am wondering is the following:
Is there a way from within StarOffice 8 to scan a particular file and then let the user know every different font name used in that file?
That way, if the file contains a font which was used on another machine but not currently installed on the current machine -- when I am updating information in the file -- I can then see a list of fonts used and then install new fonts accordingly after checking to see if they are installed (by checking the Fonts folder in C:/Windows)
I hope this makes sense, or is it "clear as mud"?
Please excuse my bad English grammar as I am not a native English speaker, but have picked it up living in Canada for the last 20 years :-)
Cheers & thanks in advance for any help !
David
Edited by: Broad_Arrow on May 18, 2009 11:18 PM

May 20 2009
There is a Fonts Used macro writer_printAllFonts.sxw Further checking this is the wrong StarBasic macro. The one I use came from an OOo forum I think. I use it with SO7, SO8 and SO9.
It is at the end of this message. To install it:
[1] Copy the macro below to the clipboard
[2] Go to Tools>Macros>Organize Macros>Basic>Standard
Select New. Highlight what is there, paste, and close.
[3] Go to Tools>Customize>Menus>Tools
Highlight Word Count, then go to Add>Macros>My Macros>Standard>Module1
Highlight FontsUsed, Click Add, Close, Ok
Phil
REM ***** BASIC *****
Sub Main
End Sub
Sub FontsUsed 'Version 1 John Vigor 4/25/06
'List fonts used in Writer document. Appears to work in normal text,
'Sections, normal Tables, and Frames. Will currently crash on a Table
'within a Table.
oDoc = ThisComponent
Dim fonts as Integer: Dim aFonts(1)
oTC = oDoc.Text.createTextCursor
oTC.goRight(1,true) : CurrentFont = oTC.charFontName
fonts = fonts + 1 : aFonts(fonts) = CurrentFont
REM Do "normal" text.
partEnum = oDoc.Text.createEnumeration
PartEnumerator(partEnum,CurrentFont,fonts,aFonts())
REM Do Frames.
oFrames = oDoc.getTextFrames
If oFrames.Count > 0 then
fonts = fonts + 1 : ReDim Preserve aFonts(fonts)
aFonts(fonts) = "NEW FONTS, IF ANY, FOUND IN FRAMES:"
For I = 0 to oFrames.Count - 1
thisFrame = oFrames.getByIndex(I)
partEnum = thisFrame.createEnumeration
PartEnumerator(partEnum,CurrentFont,fonts,aFonts())
Next
EndIf
REM Prepare list.
For I = 1 to fonts
s = s & aFonts(I) & Chr(10)
Next
iAns = MsgBox(s,4,"FONTS FOUND. Create font list document?")
If iAns = 7 then
End
Else
NewDoc = StarDesktop.loadComponentFromURL("private:factory/swriter"," blank",O,Array())
oVC = NewDoc.CurrentController.getViewCursor
oVC.String = s : oVC.collapseToEnd
EndIf
End Sub
Sub PartEnumerator(partEnum,CurrentFont,fonts,aFonts())
While partEnum.hasMoreElements
thisElement = partEnum.nextElement
If thisElement.supportsService("com.sun.star.text.Paragraph") then
portionEnum = thisElement.createEnumeration
PortionEnumerator(portionEnum,CurrentFont,fonts,aFonts())
ElseIf thisElement. supportsService ("com.sun.star.text.TextTab le") then
Cols = thisElement.getColumns.Count - 1
Rows = thisElement.getRows.Count - 1
For C = 0 to Cols
For R = 0 to Rows
thisCell = thisElement.getCellByPosition(C,R)
cellEnum = thisCell.createEnumeration
While cellEnum.hasMoreElements
thisPara = cellEnum.nextElement
portionEnum = thisPara.createEnumeration
PortionEnumerator(portionEnum,CurrentFont,fonts,aFonts())
Wend
Next
Next
EndIf
Wend
End Sub
Sub PortionEnumerator(portionEnum,CurrentFont,fonts,aFonts())
Dim found as Boolean
While portionEnum.hasMoreElements
thisPortion = portionEnum.nextElement
thisFont = thisPortion.charFontName
If thisFont <> CurrentFont then
For I = 1 to fonts
If aFonts(I) = thisFont then found = true: Exit For
Next
If found then
CurrentFont = thisFont : found = false Else
fonts = fonts + 1 : ReDim Preserve aFonts(fonts)
aFonts(fonts) = thisFont : CurrentFont = thisFont
EndIF
EndIf
Wend
End Sub

Similar Messages

  • [svn:fx-trunk] 13366: Ensuring that AFEFontManager, if it is available, overrides the lookup for embedded fonts for all supported font types, including TTF, when embedding legacy DefineFont3 fonts.

    Revision: 13366
    Revision: 13366
    Author:   [email protected]
    Date:     2010-01-07 22:15:50 -0800 (Thu, 07 Jan 2010)
    Log Message:
    Ensuring that AFEFontManager, if it is available, overrides the lookup for embedded fonts for all supported font types, including TTF, when embedding legacy DefineFont3 fonts. BatikFontManager will remain a backup in the event that AFEFontManager is not found though BatikFontManager;s support is limited to TTF for legacy DefineFont3 fonts.
    QE notes: Remember that bitmap comparisons could change slightly
    Doc notes: N/A
    Bugs: N/A
    Reviewer: For Gaurav
    Tests run: checkintests, QE had run local tests
    Is noteworthy for integration: Yes
    Modified Paths:
        flex/sdk/trunk/frameworks/flex-config.xml

    I got again a total system freeze today when I wanted to launch firefox using only the openbox menu, without wbar running.
    So I decided to try now the 'nouveau.noaccel=1' kernel command line parameter, and to use again wbar for my frequently used applis.
    In the Xorg log, the differences are:
    without 'nouveau.noaccel=1'
    [ 30.761] (II) UnloadModule: "nv"
    [ 30.761] (II) Unloading nv
    [ 30.761] (--) Depth 24 pixmap format is 32 bpp
    [ 30.762] (II) NOUVEAU(0): Opened GPU channel 0
    [ 30.765] (II) NOUVEAU(0): [DRI2] Setup complete
    [ 30.765] (II) NOUVEAU(0): [DRI2] DRI driver: nouveau
    [ 30.765] (II) NOUVEAU(0): [DRI2] VDPAU driver: nouveau
    [ 30.776] (II) EXA(0): Driver allocated offscreen pixmaps
    [ 30.777] (II) EXA(0): Driver registered support for the following operations:
    [ 30.777] (II) Solid
    [ 30.777] (II) Copy
    [ 30.777] (II) Composite (RENDER acceleration)
    [ 30.777] (II) UploadToScreen
    [ 30.777] (II) DownloadFromScreen
    [ 30.777] (==) NOUVEAU(0): Backing store disabled
    [ 30.777] (==) NOUVEAU(0): Silken mouse enabled
    with 'nouveau.noaccel=1'
    [ 1191.621] (II) UnloadModule: "nv"
    [ 1191.621] (II) Unloading nv
    [ 1191.621] (--) Depth 24 pixmap format is 32 bpp
    [ 1191.621] (EE) NOUVEAU(0): Error creating GPU channel: -19
    [ 1191.621] (EE) NOUVEAU(0): Error initialising acceleration. Falling back to NoAccel
    [ 1191.621] (==) NOUVEAU(0): Backing store disabled
    [ 1191.621] (==) NOUVEAU(0): Silken mouse enabled
    [ 1191.621] (==) NOUVEAU(0): DPMS enabled
    So now 3D acceleration is disabled.
    I will see now if the system is stable enough for my daily usage and gives satisfactory performances.
    I am almost sure that the mesa nouveau dri driver is the cause of the freezes.
    Last edited by berbae (2013-03-27 10:07:42)

  • How to find out the font type?

    Is it possible to find out the type of the used fonts(like Open type (or) true type) in illustrator cs3 file through programmatically. Kindly share with me the possibilities and solution.
    Thanks...

    You can't consistently, but a lot of files have identifying characteristics in the first few bytes that make it easier.
    There are utilities to do this, but I could have sworn that someone wrote a Java library to do it as well. As always, I suggest that you poke around http://jakarta.apache.org/commons/
    Or do a Google if Jakarta doesn't pan out.
    Message was edited by:
    paulcw

  • Help me to find out the font type?

    Is it possible to find out the type of the used fonts(like Open type (or) true type) in illustrator cs3 file through programmatically. Kindly share with me the possibilities and solution.
    Thanks...

    Good evening,
    an idea to help you in your approach
    Sub texte()
    Set appref = CreateObject("Illustrator.Application.cs4")
    Set myDoc = appref.ActiveDocument
    Set myText = myDoc.TextFrames
    For i = 1 To myText.Count
    MsgBox (myText(i).Characters(1).CharacterAttributes.TextFont.Family)
    Next
    End Sub
    Patrice

  • Is there a way to apply all the font styles before importing the file

    Hi,
    I've some text as below in a text file that needs to be imported into InDesign.
    "Law of Civil Procedures"
    And in InDesign this is to be made bold. I want to know if there is a way to make it bold directly and then import it into InDesign, I'm asking this as I have approximately 200 pages that needed with all the font styles applied. This would be very helpful if i can first apply the font styles and then import it into InDesign.

    Hi Salah,
    Thanks for your Answer. I'm completely new to indesign, i'm basically an XSLT Developer. My question in brief is as below.
    We have to make books in InDesign, and the content we receive would be in XML Format and also an RTF file is given with same content, what we do currently is copy and paste the text in InDesign document and start formatting te content accordingly. But we are having huge volumes like more than 6000 pages and similarly we are having 8-12 vilumes, i want to know if we can get the styles directly in InDesign and start working on  them.
    For eg: we have the below content
    <para style="left"><num style="bold">1(1)</num>   <b>[Short title and commencement]</b></para>
    Here there should be a para created and the number should be bold. I'm really unable to understand how to do it. please help me with this. And also our vendors need the IDML file along with the PDF. please let me know how i can do this.
    Also please suggest me some good tutorials regarding this.
    Thanks.

  • I have pc with itunes loaded on seperate hard drive and can't find all music some from ripping in wav files won;t show but any and all i've downloaded from itunes store are there what,s up/ /?

    Having trouble getting my music from seperate hard drive. Recently tried to have my new laptop see and play itunes on my wireless server, but not all music showed up, and now my music on my pc doesn't show all music either. Some wav files from ripping off cd, and some I've imported from windows media show up and all mp3 bought from store is there. But more than half is listed at bottom of library as unknown artist, unknown album etc.. WHATS UP!!!!

    try backing up the adresses on a different computer.
    1) connect iphone to computer
    2) in itunes click "enable disk use"
    3) locate the files in the iphone hard drive
    4) copy and paste them on that computer
    if it does wipe out your adress library, just revert to the backup. Although i don't know where the files will be on your iphone hard drive.

  • How to find all users in hyperion using ListUsers java file...

    hi..
    please can anyone let me know that how i can use the ListUsers.java file to list all users having account.
    i have created class file from above and try to run it in follwoing way...
    java ListUsers username passwd ipadd port(i use 6795 which reportsitory port)
    but it gives me error like ..
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sqribe/rm/ReportMartException
    can any one plese let me is thr anything i am doing wrong.. i m sure that class in java file is same as the one i am using..
    thanks in advance.

    hey u will ge getting dataset after execution of the excute command i will try to explain it
    PreparedStatementUtil preparedstatementutil = new PreparedStatementUtil();
    preparedstatementutil.setStatement(dataProvider, "select usr.usr_email from usr usr where usr.USR_Login=?");
    preparedstatementutil.setString(1, "TEST1");
    preparedstatementutil.execute();
    tcDataSet tcdataset = preparedstatementutil.getDataSet();
    UserEmailAddr = tcdataset.getString("usr_email");
    here you are getting the email address from the dataset after executing the execute statement.
    hope this helps you
    Regards
    VM

  • Different font between Word and Help file

    Hi,
    I have a Word file in Arial 10, and the help file created
    with RH (WinHelp 4) appears in Times New Roman 9 (or so). What is
    wrong ?
    Thanks for your help,
    Sorrindo

    Someone else reported just a couple of days ago that the
    patch had not worked for them and cited another Microsoft patch as
    causing the problem. Search back and see if removing that patch
    fixes things. If it does, check with your IT people they are happy
    to remove the patch.
    Post back if stuck.

  • How to find all Hypercard documents in Leopard?

    When I upgraded to a Mac Pro from a G4, I lost my ability to work with Hypercard (I do use Sheepshaver occasionally, but it crashes frequently). I recently purchased Supercard, in order to be able to continue to work in a Hypercard-like environment (and it works great), but I have to convert my Hypercard projects and stacks to Supercard format.
    I have several old Hypercard documents scattered throughout my mac's hard drives, and want to be able to find them all using Leopard's find abilities. However, I have discovered that (unlike in Tiger), Leopard cannot search by Creator Code or file Type Code, only by "Kind". When I try to search by "Kind" for "HyperCard" or "Hypercard Document" (Leopard displays the latter in the Get Info box for a Hypercard stack), I get no results. It works for "Microsoft Excel", but not for Hypercard.
    None of content, size or date help work; there is a wide range of stack sizes and date (I was working on various projects from the late 1980s through last year). Content varies widely as well.
    Any ideas on how I can find all Hypercard stacks on my drives? Perhaps there is a 3rd party tool that allows me to do this (I've searched with no luck on this front yet).
    Thanks!

    I tried this and it works as you describe, but not all Hypercard documents appear to have the same content type, as described by Terminal.
    The first Hypercard stack I tried came up with the content type:
    dyn.ah62d4rv4ge8xe6u
    The search only found the one result with this type (the same stack).
    Then I tried using the Hypercard "Home" stack (a pretty central stack to Hypercard's functioning), and it had a content type:
    dyn.ah62d4rv4gk8zgzcbmq
    (note the type is longer with a different ending; only the first 14 characters are identical to the first stack).
    This search found 317 items, which is likely most of my Hypercard documents, so this is some progress.
    Unfortunately I know that since the first stack I tried had a different content type, there may be other Hypercard stacks on my hard drive with yet a different content type, not caught by these searches.
    I then tried a wildcard, thinking that if only the first 14 characters of the content type are identical, I focus my search on those characters only, using asterisk as a wildcard at the end. So I searched for:
    dyn.ah62d4rv4g*
    The result was 526 hits, including many documents that are not Hypercard. So this doesn't help.
    It appears that the content type is not exactly specific to a the File Type or Creator Code, so while I can find many of a particular document, this method cannot find all of one type of document.
    I tried searching using raw query by the Terminal-reported File Type Code (kMDItemFSTypeCode= "STAK"), but this revealed no items.
    Perhaps I should suggest this to Apple as a bug fix for Leopard, to restore the ability to search by Type Code or Creator Code as a choice in the OS Find service? I know these codes are no longer relied on as much as they used to be, since now the OS uses extension as much as anything else, but there is lots of older software that still run in Leopard that use Type and Creator codes. And Apple still recommends registering the creator code of any new software.
    Thank you!

  • How to find all bookmarked PDF documents in Preview in Mavericks?

    Hi there,
      the problem is that before upgrading to Mavericks I could view all my bookmarked PDF documents just via menu bar in Preview, but now in Mavericks I have no idea how to manage this bookmarked documents - I can see bookmarks only after opening these PDF files which have been bookmarked. Just imagine that you have thousands of documents of which only a couple have been bookmarked for later reading - as I can see the only way to find these documents in Maverick is to open documents one by one and see whether they have bookmarks or not... Is there any way to bypass this painful procedure?
    Thanks in advance!
    Kind regards,
    Alex

    I tried this and it works as you describe, but not all Hypercard documents appear to have the same content type, as described by Terminal.
    The first Hypercard stack I tried came up with the content type:
    dyn.ah62d4rv4ge8xe6u
    The search only found the one result with this type (the same stack).
    Then I tried using the Hypercard "Home" stack (a pretty central stack to Hypercard's functioning), and it had a content type:
    dyn.ah62d4rv4gk8zgzcbmq
    (note the type is longer with a different ending; only the first 14 characters are identical to the first stack).
    This search found 317 items, which is likely most of my Hypercard documents, so this is some progress.
    Unfortunately I know that since the first stack I tried had a different content type, there may be other Hypercard stacks on my hard drive with yet a different content type, not caught by these searches.
    I then tried a wildcard, thinking that if only the first 14 characters of the content type are identical, I focus my search on those characters only, using asterisk as a wildcard at the end. So I searched for:
    dyn.ah62d4rv4g*
    The result was 526 hits, including many documents that are not Hypercard. So this doesn't help.
    It appears that the content type is not exactly specific to a the File Type or Creator Code, so while I can find many of a particular document, this method cannot find all of one type of document.
    I tried searching using raw query by the Terminal-reported File Type Code (kMDItemFSTypeCode= "STAK"), but this revealed no items.
    Perhaps I should suggest this to Apple as a bug fix for Leopard, to restore the ability to search by Type Code or Creator Code as a choice in the OS Find service? I know these codes are no longer relied on as much as they used to be, since now the OS uses extension as much as anything else, but there is lots of older software that still run in Leopard that use Type and Creator codes. And Apple still recommends registering the creator code of any new software.
    Thank you!

  • How to change Font Type of the Title Text of a JFrame?

    Hi,
    I want to set a different Font Type for the Title text of the titlebar of my JFrame.
    Is it possible? Can anyone show me how if it is?
    Thanks.
    Niteen

    Michael,
    Thanks. It works!
    But there was a problem. I was not using the :-
    JFrame.setDefaultLookAndFeelDecorated(true);
    so I have to use it now.
    Is it possible to do it without the default decorated look and feel? Because the default LNF title bar has too much height and I am cramped for space.
    I know that's no excuse. I tried but it doesn't work.. I am using a extended JFrame like this:-
    class Testing extends JFrame
    public Testing()
    setSize(300,100);
    setLocation(400,200);
    Container container = getContentPane();
    /* add components to this container here */
    setVisible(true);
    When I use getComponent() for the container, I get an ArrayIndexOutOfBound Exception.
    When I set the argument to getComponent(0), the font in the title bar is not changed.
    What else should I do?
    Thanks.
    Niteen.

  • Font types of illustrator cs2 document

    Hi,     
         I need to get font types (open type, true type and type1) of illustrator cs2 document.  Can't able to get using script and action.  Manually i can get by saving document info of a document.  But when i trying through action cant able to record.  Any possible is there to get font types?.. If anyone knows pls let me know.
      Thanks in advance.

    Oviya... wrote:
    Hi,     
         I need to get font types (open type, true type and type1) of illustrator cs2 document.  Can't able to get using script and action.  Manually i can get by saving document info of a document.  But when i trying through action cant able to record.  Any possible is there to get font types?.. If anyone knows pls let me know.
      Thanks in advance.
    Are you looking for a list all the font type used in a particluar document?
    shastafir

  • To share a library and a font type

    How do I share a library among different fla files? For
    instance I have three fla files which will use the same images.
    Is it possible to share a font type among these fla files
    too?

    This is taken straight from the help in flash on "working
    with common libraries"
    [quote]
    Working with common libraries
    You can use the sample common libraries included with Flash
    to add buttons or sounds to your documents. You can also create
    custom common libraries, which you can then use with any documents
    that you create.
    To use an item from a common library in a document:
    Select Window > Other Panels > Common Libraries, and
    select a library from the submenu.
    Drag an item from the common library into the library for the
    current document.
    To create a common library for your Flash application:
    Create a Flash file with a library containing the symbols
    that you want to include in the permanent library.
    Place the Flash file in the Libraries folder located in the
    Flash application folder on your hard disk.
    Note: The Libraries folder is located in the
    application-level configuration folder, one of several
    configuration folders placed on your hard drive when you install
    Flash. For the location of configuration folders, see Configuration
    folders installed with Flash.
    [end quote]

  • How to find the missing fonts?

    hi,
    Is there any other options to find the missing fonts in a illustrator 10 file using AppleScript.
    or
    How to identify the missing fonts and missing links dialog box when opening a document through AppleScript. Suppose if i can identify in the particular file means (in batch processes), i need to neglect the particular file and open the other file in a BatchProcess.
    Regards,
    Subha

    reply as soon as possible.........

  • Illustrator's font is different for some reason and hard to read, I need to change it so i can read all the tabs and file names. Like file, edit, options, type, select, effects..... swatches, layers.. every tab is in a different font that is hard to read

    Illustrator's tabs are all in a different font that I can read.
    I need to know how to change it so I can get back to a steady workflow.
    For example..
    File, edit, options, type, select,  effects, view, windows, help..... pathfinder, layers, swatches, stroke, and the file name (all the tabs)
    are all in a different font, I don't know how it got changed but now it is different.
    This is a shared computer so someone might have changes it on accident but I'm not sure.

    Many of your points are totally legitimate.
    This one, however, is not:
    …To put it another way, the design of the site seems to be geared much more towards its regular users than those the site is supposedly trying to "help"…
    The design and management of the forums for more than five years have driven literally dozens of the most valuable contributors and "regulars" away from the forums—permanently.
    The only conclusion a prudent, reasonable person can draw from this state of affairs is that Adobe consciously and deliberately want to kill these forums by attrition—without a the PR hit they would otherwise take if they suddenly just shut them down.

Maybe you are looking for

  • Is there a way of blocking websites on a ipod touch

    wierd websites keep apearing on my safari pade i keep going back to the history folder to try and block them bt its no use. is there a way to block pages on safari if know PLEASE TELL ME NOW!!!!!

  • How can I place all of my navigation buttons (forward, back, refresh/stop, home) to the left of the URL field?

    I never liked having the navigation buttons spread across the top. Seems logical and more convenient to have them all in one place. I do not see a way to customize their placement.

  • Audio file 'recording#10.aif' not found (message)

    When I try to open any garageband files that contain real instrument recordings(purple recordings) I recieve a message saying "Audio file 'recording#10.aif' not found, or any other recording number... When the computer prompts me to search i tell it

  • Polling at intervals

    Where do we require to mention time for polling the data automatically by communication channel? I know we go with planning availability times for adapter to poll automatically, but where we define the time interval to poll the data?

  • Unable to run Weblogic 8.1 on Linux RH4.0

    Hi, I have downloaded the relevant WLS8.1 and ALDSP2.5 for RH4.0 linux machine. After installation, when i try to start the WLS8.1 server from ldplatform domain i get the following error: The WebLogic Server did not start up properly. java.lang.NoCla