danipen/TextMateSharp

Use [Flags] enum for FontStyle

Closed this issue · 3 comments

TextMateSharp.Themes.FontStyle is currently a class with int fields representing a bitfield. This sort of bitfield is normally represented in c#/dotnet as an enum with the [Flags] attribute, so FontStyle should be updated to match.

Agree. The implementation is a port from tm4e so it matches that implementation. But there are some areas for improvement.

@Khitiara would you like to add a PR for this?

ill fork it and do it, this should be a relatively quick thing

Merged! Thanks for the contribution.