[CONNECT 10.10 C#] Missing Fonts

I’m trying to figure out if there is a way to get a list of missing fonts either by the message center or other means using the API. I want to be able to pull this into a list so that we can make sure the fonts are added to the completed projects. 

Parents Reply Children
  • We are getting projects that have custom fonts used on text and not receiving the fonts with projects. The missing fonts are being set to standard or other default fonts when the file is opened. What I'm attempting to do is find these fonts that are missing and produce a list of them. I'm just not sure how to tell that the font was not found.

  • What I'm attempting to do is find these fonts that are missing and produce a list of them. I'm just not sure how to tell that the font was not found

    That's clearer!

    In the MicroStationAPI, a DgnTextStyle has a DgnFont. A DgnFont has member properties...

    • GetName () Get the name for this Font
    • IsPresent () Determine whether this Font is present on the system
    • IsMissingFontReported () If the font is "missing" from the system, check whether the user has been notified about the missing font

    For a given DGN file, you must...

    1. Enumerate all text elements, and build a list of text styles
    2. Enumerate the text styles and evalue the font in each style

    Those classes exist, with the same names, in the DgnPlatformNet API.

     
    Regards, Jon Summers
    LA Solutions