Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ligature Support #104

Closed
wants to merge 5 commits into from
Closed

Add ligature Support #104

wants to merge 5 commits into from

Conversation

arkhan
Copy link

@arkhan arkhan commented Jul 11, 2020

No description provided.

@actionless
Copy link
Collaborator

if that's an expected behavior?

2020-07-12--1594530037_88x35_scrot

@actionless actionless requested a review from neeasade July 12, 2020 05:03
@arkhan
Copy link
Author

arkhan commented Jul 12, 2020

@actionless works fine,

img-2020-07-12-005108

@neeasade
Copy link
Member

We'll want to make this opt-in through xresources, and consider notifying package maintainers of the new dependency

@actionless
Copy link
Collaborator

@arkhan you didn't got my example -- it not works when between symbols are invisible escape sequences for defining the color of the letters

@neeasade
Copy link
Member

@actionless I see on the patch page:

Due to some limitations in drawing engine, ligatures will break when crossing colors, font styles or selection. They will still render properly as separate symbols, just not as ligatures.

@arkhan
Copy link
Author

arkhan commented Jul 16, 2020

@actionless like this:

img-2020-07-16-161843

st.c Outdated
@@ -2719,7 +2719,8 @@ draw(void)
drawregion(0, 0, term.col, term.row);
if (term.scr == 0)
xdrawcursor(cx, term.c.y, term.line[term.c.y][cx],
term.ocx, term.ocy, term.line[term.ocy][term.ocx]);
term.ocx, term.ocy, term.line[term.ocy][term.ocx],
term.line[term.ocy], term.col);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent problem

st.h Outdated
@@ -34,6 +35,7 @@ enum glyph_attribute {
ATTR_WIDE = 1 << 9,
ATTR_WDUMMY = 1 << 10,
ATTR_BOXDRAW = 1 << 11,
ATTR_LIGA = 1 << 12,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent problem

x.c
@@ -1287,7 +1291,7 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x
mode = glyphs[i].mode;

/* Skip dummy wide-character spacing. */
if (mode == ATTR_WDUMMY)
if (mode & ATTR_WDUMMY)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the question above still valid

@actionless
Copy link
Collaborator

We'll want to make this opt-in through xresources

i think this is still a blocker for this PR to be merged

@kanashimia
Copy link

Breaks boxdraw.

@arkhan arkhan closed this Nov 27, 2020
@actionless
Copy link
Collaborator

actionless commented Nov 27, 2020

why you did closed it?

@arkhan
Copy link
Author

arkhan commented Nov 27, 2020

@actionless Unfortunately I find myself difficult of time to review the problems to be solved in this MR

@neeasade neeasade mentioned this pull request Mar 28, 2022
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants