Skip to content

Commit dccd746

Browse files
committed
update text font.
update text font.
1 parent 799b95f commit dccd746

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

demo/demo.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@
452452
height: 240,
453453

454454
title: 'Title',
455-
titleFont: "bold 18px Arial",
455+
titleFont: "normal normal bold 18px Arial",
456456
titleColor: "#fff",
457457
titleBackgroundColor: "#3074B4",
458458
titleHeight: 40,
@@ -491,7 +491,7 @@
491491

492492
// === Title
493493
title: 'Title', // Title
494-
titleFont: "bold 18px Arial", // Title font
494+
titleFont: "normal normal bold 18px Arial", // Title font
495495
titleColor: "#004284", // Title Color
496496
titleBackgroundColor: "#fff", // Title Background
497497
titleHeight: 70, // Title height, include subTitle
@@ -500,7 +500,7 @@
500500

501501
// === SubTitle
502502
subTitle: 'subTitle', // Subtitle content
503-
subTitleFont: "14px Arial", // Subtitle font
503+
subTitleFont: "normal normal normal 14px Arial", // Subtitle font
504504
subTitleColor: "#004284", // Subtitle color
505505
subTitleTop: 40, // Subtitle drwa position(Y coordinate), default is 50
506506

dist/easy.qrcode.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",
3-
"version": "4.3.4",
3+
"version": "4.3.5",
44
"description": "Cross-browser QRCode generator for pure javascript. Support Canvas, SVG and Table drawing methods. Support Dot style, Logo, Background image, Colorful, Title etc. settings. Support Angular, Vue.js, React, Next.js framework. Support binary(hex) data mode.(Running with DOM on client side)",
55
"main": "dist/easy.qrcode.min.js",
66
"scripts": {},

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ var qrcode = new QRCode(DOM_object, options_object);
263263
// ====== Title
264264
/*
265265
title: 'QR Title', // content
266-
titleFont: "bold 18px Arial", //font. default is "bold 16px Arial"
266+
titleFont: "normal normal bold 18px Arial", //font. default is "bold 16px Arial"
267267
titleColor: "#004284", // color. default is "#000"
268268
titleBackgroundColor: "#fff", // background color. default is "#fff"
269269
titleHeight: 70, // height, including subTitle. default is 0
@@ -273,7 +273,7 @@ var qrcode = new QRCode(DOM_object, options_object);
273273
// ====== SubTitle
274274
/*
275275
subTitle: 'QR subTitle', // content
276-
subTitleFont: "14px Arial", // font. default is "14px Arial"
276+
subTitleFont: "normal normal normal 14px Arial", // font. default is "14px Arial"
277277
subTitleColor: "#004284", // color. default is "4F4F4F"
278278
subTitleTop: 40, // draws y coordinates. default is 0
279279
*/
@@ -364,14 +364,14 @@ var qrcode = new QRCode(DOM_object, options_object);
364364
| **timing_V** | N | String | `undefined` | Vertical timing CSS color |   |
365365
| Title options| --- | ---|---|---|---|
366366
| **title** | N | String | `''` | |   |
367-
| **titleFont** | N | String | `bold 16px Arial` | CSS Font |   |
367+
| **titleFont** | N | String | `normal normal bold 16px Arial` | CSS Font |   |
368368
| **titleColor** | N | String | `#000000` | CSS color |   |
369369
| **titleBackgroundColor** | N | String | `#ffffff` | CSS color|   |
370370
| **titleHeight** | N | Number | `0` | Title Height, Include subTitle |   |
371371
| **titleTop** | N | Number | `30` | draws y coordinates.|   |
372372
| SubTitle options| --- | ---|---|---|---|
373373
| **subTitle** | N | String | `''` | |   |
374-
| **subTitleFont** | N | String | `14px Arial` | CSS Font |   |
374+
| **subTitleFont** | N | String | `normal normal normal 14px Arial` | CSS Font |   |
375375
| **subTitleColor** | N | String | `#4F4F4F` | CSS color |   |
376376
| **subTitleTop** | N | Number | `0` | draws y coordinates. default is 0|   |
377377
| Event Handler options| --- | ---|---|---|---|

src/easy.qrcode.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Cross-browser QRCode generator for pure javascript. Support Canvas, SVG and Table drawing methods. Support Dot style, Logo, Background image, Colorful, Title etc. settings. Support Angular, Vue.js, React, Next.js framework. Support binary(hex) data mode.(Running with DOM on client side)
55
*
6-
* Version 4.3.4
6+
* Version 4.3.5
77
*
88
* @author [ [email protected] ]
99
*
@@ -1877,14 +1877,14 @@
18771877
quietZoneColor: "rgba(0,0,0,0)",
18781878

18791879
title: "",
1880-
titleFont: "bold 16px Arial",
1880+
titleFont: "normal normal bold 16px Arial",
18811881
titleColor: "#000000",
18821882
titleBackgroundColor: "#ffffff",
18831883
titleHeight: 0, // Title Height, Include subTitle
18841884
titleTop: 30, // draws y coordinates. default is 30
18851885

18861886
subTitle: "",
1887-
subTitleFont: "14px Arial",
1887+
subTitleFont: "normal normal normal 14px Arial",
18881888
subTitleColor: "#4F4F4F",
18891889
subTitleTop: 60, // draws y coordinates. default is 0
18901890

0 commit comments

Comments
 (0)