Code Monkey home page Code Monkey logo

Comments (9)

simonbrowndotje avatar simonbrowndotje commented on August 9, 2024 1

Yes, via branding, which is a child of views.

Example:

workspace {

    model {
        user = person "User"
    }

    views {
        branding {
            font Courier
        }
    }

}

You can also set it via Java, as shown in the unit test.

Feel free to submit a docs PR if you think an example is needed.

from export.

simonbrowndotje avatar simonbrowndotje commented on August 9, 2024

The branding font will now be used as the default font for the two PlantUML exporters.

(please note that you will need to build from source to use this library until it's released onto Maven Central)

from export.

dgutson avatar dgutson commented on August 9, 2024

Thanks! How is the default font specified? Could you please add a note in the dsl reference, or provide an example?
Is using the branding body the only way to specify the font? Because I didn't find any other place where font <name> could be
specified, not even in themes nor element.

from export.

dgutson avatar dgutson commented on August 9, 2024

Last question, aligned with my previous question here, what is the default font name in Linux? IIUC, unless I explicit the font, I will still get different defaults in Linux and Mac, right?

from export.

dgutson avatar dgutson commented on August 9, 2024

Sorry, I think I can answer myself, the default is given by plantUML, not by structurizr.

from export.

dgutson avatar dgutson commented on August 9, 2024

@simonbrowndotje any news about when this will be available in docker hub?

from export.

dgutson avatar dgutson commented on August 9, 2024

ping? any update when this will be released?

from export.

simonbrowndotje avatar simonbrowndotje commented on August 9, 2024

This particular code change was released onto Maven Central last week; see https://github.com/structurizr/export/releases for more details.

from export.

bcordobaq avatar bcordobaq commented on August 9, 2024

Hi @simonbrowndotje, would it be possible that these changes aren't available yet in the Docker image? We've updated our project with the branding instruction, and we moved from 1.25.0 to the current latest 1.27.0, and it didn't work... could you help me?

from export.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.