File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed
src/examples/java/io/sf/carte/example Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ name: Examples
8
8
on :
9
9
push :
10
10
branches : [ master ]
11
+ pull_request :
12
+ branches : [ master ]
11
13
12
14
# Allows to run this workflow manually from the Actions tab
13
15
workflow_dispatch :
32
34
# Check the build
33
35
- name : Test the build
34
36
run : ./gradlew test
37
+
38
+ # Upload test artifact
39
+ - name : Upload test output
40
+ uses : actions/upload-artifact@v4
41
+ if : ${{ failure() }}
42
+ with :
43
+ name : test-output
44
+ path : |
45
+ build/reports/tests/
46
+ retention-days : 15
47
+ overwrite : true
Original file line number Diff line number Diff line change 1
1
/*
2
2
3
- Copyright (c) 2024, Carlos Amengual .
3
+ Copyright (c) 2024, contributors to EchoSVG project .
4
4
5
5
Licensed under a BSD-style License. You can find the license here:
6
6
https://css4j.github.io/LICENSE.txt
@@ -35,11 +35,11 @@ public void paint(Graphics2D g) {
35
35
g .setBackground (backgroundColor );
36
36
37
37
// Set default font
38
- g .setFont (new Font ("Arial " , Font .BOLD , 12 ));
38
+ g .setFont (new Font ("sans-serif " , Font .BOLD , 12 ));
39
39
40
40
// Create a font with the desired attributes, including STRIKETHROUGH
41
41
Map <TextAttribute , Object > attributes = new HashMap <>();
42
- attributes .put (TextAttribute .FAMILY , "Helvetica " );
42
+ attributes .put (TextAttribute .FAMILY , "serif " );
43
43
attributes .put (TextAttribute .WEIGHT , TextAttribute .WEIGHT_EXTRABOLD );
44
44
attributes .put (TextAttribute .SIZE , 20 );
45
45
attributes .put (TextAttribute .STRIKETHROUGH , TextAttribute .STRIKETHROUGH_ON );
You can’t perform that action at this time.
0 commit comments