Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

webfonts addon#5178

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
jerch wants to merge14 commits intoxtermjs:master
base:master
Choose a base branch
Loading
fromjerch:webfonts-addon
Open

webfonts addon#5178

jerch wants to merge14 commits intoxtermjs:masterfromjerch:webfonts-addon

Conversation

@jerch
Copy link
Member

@jerchjerch commentedOct 3, 2024
edited
Loading

Since the issue#5164 brought up webfonts once more and the other addon is quite outdated, I started to build a new one.

TODO:

  • fix d.ts file
  • removeRoboto Mono from client.ts and client.css again
  • extend demo to test webfont loading
  • find a working CI test pattern

ithrforu reacted with thumbs up emoji
constpos=s.match(/([-_a-zA-Z0-9\xA0-\u{10FFFF}]+)/u);
constneg=s.match(/^(-?\d|--)/m);
if(!neg&&pos&&pos[1]===s)returns;
return`"${s.replace(/"/g,'\\"')}"`;

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding

This does not escape backslash characters in the input.
@jerch
Copy link
MemberAuthor

@Tyriar I am not sure, if the integration testing works correctly atm. There are several tests failing, but the CI does still mark them as successful. 🤔

Example:https://github.com/xtermjs/xterm.js/actions/runs/11170843380/job/31054434727?pr=5178#step:10:491

res.sendFile(__dirname+'/style.css');
});

app.get('/kongtext.regular.ttf',(req,res)=>res.sendFile(__dirname+'/kongtext.regular.ttf'));

Check failure

Code scanning / CodeQL

Missing rate limiting

This route handler performs [a file system access](1), but is not rate-limited.
});

app.get('/kongtext.regular.ttf',(req,res)=>res.sendFile(__dirname+'/kongtext.regular.ttf'));
app.get('/bpdots.regular.otf',(req,res)=>res.sendFile(__dirname+'/bpdots.regular.otf'));

Check failure

Code scanning / CodeQL

Missing rate limiting

This route handler performs [a file system access](1), but is not rate-limited.
@Tyriar
Copy link
Member

I am not sure, if the integration testing works correctly atm. There are several tests failing, but the CI does still mark them as successful. 🤔

Ugh, this again☹️

@Tyriar
Copy link
Member

Will handle in#5179

@Tyriar
Copy link
Member

Fixed:#5180

@jerch
Copy link
MemberAuthor

I have no clue yet, how to test that in the CI. Maybe it is possible to track the font asset loading somehow with playwright. The changing glyph metrics should be spotable though (my demo fonts are quite different from the usual ones).

@jerch
Copy link
MemberAuthor

@Tyriar Added some CI tests, ready for review.

@jerchjerch mentioned this pull requestOct 4, 2024
@jerchjerch requested a review fromTyriarOctober 4, 2024 15:57
@jerchjerch added this to the6.0.0 milestoneOct 4, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@TyriarTyriarAwaiting requested review from Tyriar

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

6.0.0

Development

Successfully merging this pull request may close these issues.

2 participants

@jerch@Tyriar

[8]ページ先頭

©2009-2025 Movatter.jp