Skip to content

Commit ee5d39c

Browse files
committed
update text font.
update text font.
1 parent 33da71d commit ee5d39c

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

demo/demo_node.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ var config3={
6969

7070
// === Title
7171
title: 'EasyQRCode', // Title
72-
titleFont: "bold 24px Arial", // Title font
72+
titleFont: "normal normal bold 24px Arial", // Title font
7373
titleColor: "#004284", // Title Color
7474
titleBackgroundColor: "#ffffff", // Title Background
7575
titleHeight: 70, // Title height, include subTitle
7676
titleTop: 25, // Title draw position(Y coordinate), default is 30
7777

7878
// === SubTitle
7979
subTitle: 'nodejs', // Subtitle content
80-
subTitleFont: "20px Arial", // Subtitle font
80+
subTitleFont: "normal normal normal 20px Arial", // Subtitle font
8181
subTitleColor: "#269926", // Subtitle color
8282
subTitleTop: 50, // Subtitle drwa position(Y coordinate), default is 50
8383

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* NodeJS QRCode generator. Can save image or svg to file, get standard base64 image data url text or get SVG serialized text. Cross-browser QRCode generator for pure javascript. Support Dot style, Logo, Background image, Colorful, Title etc. settings. support binary mode.(Running without DOM on server side)
55
*
6-
* Version 4.2.6
6+
* Version 4.2.7
77
*
88
* @author [ [email protected] ]
99
*
@@ -1552,14 +1552,14 @@ function QRCode(vOption) {
15521552
quietZoneColor: "rgba(0,0,0,0)",
15531553

15541554
title: "",
1555-
titleFont: "bold 16px Arial",
1555+
titleFont: "normal normal bold 16px Arial",
15561556
titleColor: "#000000",
15571557
titleBackgroundColor: "#ffffff",
15581558
titleHeight: 0, // Title Height, Include subTitle
15591559
titleTop: 30, // draws y coordinates. default is 30
15601560

15611561
subTitle: "",
1562-
subTitleFont: "14px Arial",
1562+
subTitleFont: "normal normal normal 14px Arial",
15631563
subTitleColor: "#4F4F4F",
15641564
subTitleTop: 60, // draws y coordinates. default is 0
15651565

index.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "easyqrcodejs-nodejs",
3-
"version": "4.2.6",
3+
"version": "4.2.7",
44
"description": "NodeJS QRCode generator. Can save image or svg to file, get standard base64 image data url text or get SVG serialized text. Cross-browser QRCode generator for pure javascript. Support Dot style, Logo, Background image, Colorful, Title etc. settings. support binary mode.(Running without DOM on server side)",
55
"main": "index.min.js",
66
"scripts": {},

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ var qrcode = new QRCode(options);
218218
// ====== Title
219219
/*
220220
title: 'QR Title', // content
221-
titleFont: "bold 18px Arial", //font. default is "bold 16px Arial"
221+
titleFont: "normal normal bold 18px Arial", //font. default is "bold 16px Arial"
222222
titleColor: "#004284", // color. default is "#000"
223223
titleBackgroundColor: "#fff", // background color. default is "#fff"
224224
titleHeight: 70, // height, including subTitle. default is 0
@@ -228,7 +228,7 @@ var qrcode = new QRCode(options);
228228
// ====== SubTitle
229229
/*
230230
subTitle: 'QR subTitle', // content
231-
subTitleFont: "14px Arial", // font. default is "14px Arial"
231+
subTitleFont: "normal normal normal 14px Arial", // font. default is "14px Arial"
232232
subTitleColor: "#004284", // color. default is "4F4F4F"
233233
subTitleTop: 40, // draws y coordinates. default is 0
234234
*/
@@ -307,14 +307,14 @@ var qrcode = new QRCode(options);
307307
| **timing_V** | N | String | `undefined` | Vertical timing CSS color |
308308
| Title options| --- | ---|---|---|
309309
| **title** | N | String | `''` | |
310-
| **titleFont** | N | String | `bold 16px Arial` | CSS Font |
310+
| **titleFont** | N | String | `normal normal bold 16px Arial` | CSS Font |
311311
| **titleColor** | N | String | `#000000` | CSS color |
312312
| **titleBackgroundColor** | N | String | `#ffffff` | CSS color|
313313
| **titleHeight** | N | Number | `0` | Title Height, Include subTitle |
314314
| **titleTop** | N | Number | `30` | draws y coordinates.|
315315
| SubTitle options| --- | ---|---|---|
316316
| **subTitle** | N | String | `''` | |
317-
| **subTitleFont** | N | String | `14px Arial` | CSS Font |
317+
| **subTitleFont** | N | String | `normal normal normal 14px Arial` | CSS Font |
318318
| **subTitleColor** | N | String | `#4F4F4F` | CSS color |
319319
| **subTitleTop** | N | Number | `0` | draws y coordinates. default is 0|
320320
| Event Handler options| --- | ---|---|---|

0 commit comments

Comments
 (0)