Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Multifont node and edge labels #2362

Closed
wants to merge 4 commits into from
Closed

Conversation

eymiha
Copy link
Contributor

@eymiha eymiha commented Nov 24, 2016

(Replaced by PR #2385)

fixes #1603
fixes #1936

Adds multifont rendering capability to network node and edge labels. Existing networks are not altered.

font.multi designates html or markdown. Bold, italic and code (monospaced) markup is supported.

font.bold designates the bold font properties, font.italic the italic font properties, font.bolditalic the bold-italic font properties, and font.mono the monospace font properties.

A vadjust property has also been added to the fonts that may be used to adjust any baseline mismatching between fonts.

Properties may be assigned in the network node and edge options, or on individual nodes and edges.

The network/labels/labelMultifont.html example provides illustration and some finer details.

The documents are also updated.

@mojoaxel
Copy link
Member

@eymiha I'm totally amazed by this big change. This is a very nice improvement!
Please give me (and the other guys) a few days to review and comment on this.

avoid fail when no font option is given in an element, but font.multi is on
@eymiha
Copy link
Contributor Author

eymiha commented Nov 30, 2016

I created PR #2385 which adds width and height constraints to nodes and edges. The code bases were seriously co-mingled, each affected by the presence of the other.

@eymiha eymiha closed this Nov 30, 2016
@mojoaxel mojoaxel added this to the Minor Release v4.18 milestone Dec 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants