Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
Developers and Programming
  • Product Communities
Developers and Programming
Developers and Programming Wiki Font
    • Sign In
    Developers and Programming requires membership for participation - click to join
    • -Programming - Wiki
      • +Bentley APIs and SDKs
      • -MicroStation
        • -Programming - MicroStation
          • -CONNECT
            • +Dimension
            • Font
            • Level
            • +Raster
            • +Text
            • +TextStyles
            • +Views
            • [Index]
      • +Frequently Asked Questions (FAQ)
    • +Programming Topics

     
     Questions about this article, topic, or product? Click here. 

    Font

    Font Code Snippets (C++, C#, C)

    C++

    List all fonts
    void ListAllFonts()
    {
    	DgnFontNumMapP		fontNumMap = DgnFontManager::GetDgnFontMapP(ACTIVEMODEL);
    	DgnFileP dgnFile = mdlDgnFileObj_getMasterFile();
    	DgnFontListPtr fontList = DgnFontManager::CreateKnownFontList(dgnFile);
    	for (int i = 0; i < fontList->GetCount(); i++)
    	{
    		DgnFontP font = fontList->GetEntryP(i);
    		wprintf(L"FromKnownFontList #%d: Type %d, valid: %d, %s\n", i, font->GetType(), font->IsPresent(), font->GetName());
    	}
    }
    • Share
    • History
    • More
    • Cancel
    • Artur Goldsweer Created by Bentley Colleague Artur Goldsweer
    • When: Thu, Jun 29 2017 7:34 AM
    • Robert Hook Last revision by Bentley Colleague Robert Hook
    • When: Thu, Sep 8 2022 11:08 AM
    • Revisions: 10
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies