Sitelet https://github.com/fifengine/fifengine/issues/599
Skip to content

Allow basic inline styling pychan widgets with text #599

Description

@ChrisOelmueller

When working with larger strings, we from time to time would like to have parts of it set in bold or italics.

As pychan already uses syntax like [br], a BBcode-like syntax might work (some [b]bold[/b] text). Every other approach will also work as long as it only depends on the widget text attribute (important for i18n).

Possibly requested features would also include changing font size for parts of the label, but this will cause a lot of layouting trouble I guess, so it's not critical right now.

Not sure whether this also belongs in here, but we'd have use cases where displaying an image ''in'' a Label would make sense (huge logbook pages are implemented as wrapping Labels, we use them to tell scenarios, so some images or icons would be cool).
A way to implement this would be creating sufficient amounts of newline whitespace in the actual Label and then place an Icon in that spot in another step.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions