Skip to content

apply monospace font to API elements that would be used by a dart programmer #4061

Open
@Luckey-Elijah

Description

@Luckey-Elijah

I'd like any APIs that would be used by a dart programmer to use a monospace font. This would help developers even better identify what pieces of the documentation are for use in a dart program (dart code interfaces) and what pieces are for information about said element (actual dart docs ///).

Compare the following from mockito using a monospaced font for the Class link/references

Image

versus

Image

Some js you can paste in console to get in idea of what the above is created with.

const apiElements = document.querySelectorAll("dl dt span.name");
apiElements.forEach(function (element) {
  element.style.fontFamily = "SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace";
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requesttype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions