Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PrintTemplateDoc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BusinessDoc
PrintTemplateDoc
Commits
a3b65182
Commit
a3b65182
authored
Dec 05, 2019
by
WJM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
57c299fe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
README.md
README.md
+6
-5
No files found.
README.md
View file @
a3b65182
# PrintTemplateDoc
# PrintTemplateDoc
打印模版文档
## 单位转换
## 单位转换
1mm = 3.78px
1mm = 3.78px
## 有效打印范围
## 有效打印范围
纸张大小 - 左边距(3mm)- 右边距(3mm)
纸张大小 - 左边距(3mm)- 右边距(3mm)
打印模版文档
## ESC/POS
## ESC/POS
### 基本计算单位:mm(毫米)
### 基本计算单位:mm(毫米)
### 基本打印单位:dot(点)
### 基本打印单位:dot(点)
...
@@ -22,10 +23,10 @@
...
@@ -22,10 +23,10 @@
3倍宽字体,字体间距为:0.25
*
7 = 0.75mm
3倍宽字体,字体间距为:0.25
*
7 = 0.75mm
### 字体打印宽度计算规则
### 字体打印宽度计算规则
1个单倍宽单字节字体(如:小写字母、数字、英文字符)的打印宽度 = 1
*
1.25 + 0.25 = 1.5mm
*
1个单倍宽单字节字体(如:小写字母、数字、英文字符)的打印宽度 = 1
*
1.25 + 0.25 = 1.5mm
1个单倍宽双字节字体(如:中文字、大写英文字母)的打印宽度 = 2
*
1.25 + 0.25 = 2.75mm
*
1个单倍宽双字节字体(如:中文字、大写英文字母)的打印宽度 = 2
*
1.25 + 0.25 = 2.75mm
1个x倍宽单字节字体(如:小写字母、数字、英文字符)的打印宽度 = x
* (1.25 + 0.25) = x *
1.5mm
*
1个x倍宽单字节字体(如:小写字母、数字、英文字符)的打印宽度 = x
* (1.25 + 0.25) = x *
1.5mm
1个x倍宽双字节字体(如:中文字、大写英文字母)的打印宽度 = x
* (2 *
1.25 + 0.25) = x
*
2.75mm
*
1个x倍宽双字节字体(如:中文字、大写英文字母)的打印宽度 = x
* (2 *
1.25 + 0.25) = x
*
2.75mm
### 打印起始位置计算规则
### 打印起始位置计算规则
基于pos打印机逐行打印原理,打印的垂直位置,只能依靠换行来实现。
基于pos打印机逐行打印原理,打印的垂直位置,只能依靠换行来实现。
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment