File tree Expand file tree Collapse file tree
src/examples/java/io/sf/carte/example Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ name: Examples
88on :
99 push :
1010 branches : [ master ]
11+ pull_request :
12+ branches : [ master ]
1113
1214 # Allows to run this workflow manually from the Actions tab
1315 workflow_dispatch :
3234 # Check the build
3335 - name : Test the build
3436 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 11/*
22
3- Copyright (c) 2024, Carlos Amengual .
3+ Copyright (c) 2024, contributors to EchoSVG project .
44
55 Licensed under a BSD-style License. You can find the license here:
66 https://css4j.github.io/LICENSE.txt
@@ -35,11 +35,11 @@ public void paint(Graphics2D g) {
3535 g .setBackground (backgroundColor );
3636
3737 // Set default font
38- g .setFont (new Font ("Arial " , Font .BOLD , 12 ));
38+ g .setFont (new Font ("sans-serif " , Font .BOLD , 12 ));
3939
4040 // Create a font with the desired attributes, including STRIKETHROUGH
4141 Map <TextAttribute , Object > attributes = new HashMap <>();
42- attributes .put (TextAttribute .FAMILY , "Helvetica " );
42+ attributes .put (TextAttribute .FAMILY , "serif " );
4343 attributes .put (TextAttribute .WEIGHT , TextAttribute .WEIGHT_EXTRABOLD );
4444 attributes .put (TextAttribute .SIZE , 20 );
4545 attributes .put (TextAttribute .STRIKETHROUGH , TextAttribute .STRIKETHROUGH_ON );
You can’t perform that action at this time.
0 commit comments