📄 frmfont.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form frmFont
Caption = "字体编辑浏览器"
ClientHeight = 6960
ClientLeft = 60
ClientTop = 345
ClientWidth = 7515
Icon = "frmFont.frx":0000
LinkTopic = "Form1"
ScaleHeight = 8595
ScaleWidth = 11880
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton cmdClose
Caption = "关闭"
Height = 495
Left = 6000
TabIndex = 32
Top = 2040
Width = 1215
End
Begin VB.ComboBox cmbQuality
Height = 300
Left = 1080
TabIndex = 29
Top = 2760
Width = 2055
End
Begin VB.ComboBox cmbPitch
Height = 300
Left = 1080
TabIndex = 28
Top = 2400
Width = 2055
End
Begin VB.ComboBox cmbFam
Height = 300
Left = 1080
TabIndex = 24
Top = 1800
Width = 2055
End
Begin VB.ComboBox CmbSet
Height = 300
Left = 1080
TabIndex = 23
Top = 1440
Width = 2055
End
Begin MSComDlg.CommonDialog cmdlgColor
Left = 5400
Top = 0
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.CommandButton cmdR
Caption = "角度复位"
Height = 495
Left = 6000
TabIndex = 21
Top = 1440
Width = 1215
End
Begin VB.CommandButton cmdInfo
Caption = "字体信息"
Height = 495
Left = 6000
TabIndex = 20
Top = 840
Width = 1215
End
Begin VB.TextBox txtShow
Height = 375
Left = 1080
TabIndex = 19
Top = 360
Width = 4335
End
Begin VB.Frame Frame2
Caption = "效果"
Height = 855
Left = 3480
TabIndex = 12
Top = 3600
Width = 3735
Begin VB.CheckBox chkStrikeOut
Caption = "删除线"
Height = 300
Left = 1920
TabIndex = 15
Top = 360
Width = 855
End
Begin VB.CheckBox chkUnderline
Caption = "下划线"
Height = 300
Left = 960
TabIndex = 14
Top = 360
Width = 855
End
Begin VB.CheckBox chkItalic
Caption = "倾斜"
Height = 300
Left = 120
TabIndex = 13
Top = 360
Width = 975
End
Begin VB.Label lblColor
BackColor = &H00404040&
Height = 255
Left = 2880
TabIndex = 22
Top = 360
Width = 255
End
Begin VB.Label lblCaption
Caption = "颜色"
Height = 180
Left = 3240
TabIndex = 16
Top = 420
Width = 375
End
End
Begin MSComctlLib.Slider sldrFont
Height = 480
Left = 4560
TabIndex = 11
Top = 3000
Width = 2655
_ExtentX = 4683
_ExtentY = 847
_Version = 393216
LargeChange = 2
Max = 9
SelStart = 4
Value = 4
End
Begin VB.ComboBox CmbFontF
Height = 300
Left = 1080
TabIndex = 9
Top = 1080
Width = 2055
End
Begin VB.Frame Frame1
Caption = "字符大小"
Height = 1215
Left = 240
TabIndex = 2
Top = 3240
Width = 2895
Begin MSComCtl2.UpDown udWidth
Height = 270
Left = 2385
TabIndex = 8
Top = 720
Width = 270
_ExtentX = 476
_ExtentY = 476
_Version = 393216
Value = 10
AutoBuddy = -1 'True
BuddyControl = "txtWidth"
BuddyDispid = 196620
OrigLeft = 2640
OrigTop = 840
OrigRight = 2910
OrigBottom = 1095
Max = 100
Min = 1
SyncBuddy = -1 'True
BuddyProperty = 65547
Enabled = -1 'True
End
Begin VB.TextBox txtWidth
Height = 270
Left = 1200
TabIndex = 7
Top = 720
Width = 1185
End
Begin VB.TextBox txtHeight
Height = 270
Left = 1200
TabIndex = 4
Top = 345
Width = 1185
End
Begin MSComCtl2.UpDown udHeight
Height = 270
Left = 2400
TabIndex = 3
Top = 360
Width = 270
_ExtentX = 476
_ExtentY = 476
_Version = 393216
Value = 10
AutoBuddy = -1 'True
BuddyControl = "txtHeight"
BuddyDispid = 196621
OrigLeft = 2640
OrigTop = 480
OrigRight = 2910
OrigBottom = 735
Max = 100
Min = 1
SyncBuddy = -1 'True
BuddyProperty = 65547
Enabled = -1 'True
End
Begin VB.Label Label3
Caption = "字符宽度:"
Height = 255
Left = 240
TabIndex = 6
Top = 720
Width = 1095
End
Begin VB.Label Label2
Caption = "字符高度:"
Height = 255
Left = 240
TabIndex = 5
Top = 360
Width = 1095
End
End
Begin VB.PictureBox PicFont
Appearance = 0 'Flat
AutoRedraw = -1 'True
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 2175
Left = 240
ScaleHeight = 2145
ScaleWidth = 6945
TabIndex = 1
Top = 4680
Width = 6975
End
Begin VB.CommandButton cmdOK
Caption = "显示字体"
Height = 495
Left = 6000
TabIndex = 0
Top = 240
Width = 1215
End
Begin VB.Label Label10
Caption = "输出质量:"
Height = 255
Left = 240
TabIndex = 31
Top = 2805
Width = 975
End
Begin VB.Label Label9
Caption = "字体间距:"
Height = 255
Left = 240
TabIndex = 30
Top = 2445
Width = 975
End
Begin VB.Line LnEscapement
BorderColor = &H000000FF&
BorderWidth = 2
X1 = 4680
X2 = 5160
Y1 = 2040
Y2 = 1800
End
Begin VB.Shape shpEscapement
BackColor = &H0080FFFF&
BorderStyle = 0 'Transparent
FillColor = &H00E0E0E0&
FillStyle = 0 'Solid
Height = 1695
Left = 3600
Shape = 3 'Circle
Top = 1200
Width = 2055
End
Begin VB.Label Label7
Caption = "旋转角度:"
Height = 375
Left = 3360
TabIndex = 27
Top = 1080
Width = 975
End
Begin VB.Label Label6
Caption = "字体族:"
Height = 375
Left = 240
TabIndex = 26
Top = 1800
Width = 735
End
Begin VB.Label Label4
Caption = "字符集:"
Height = 255
Left = 240
TabIndex = 25
Top = 1440
Width = 735
End
Begin VB.Label Label8
Caption = "要显示的文字:"
Height = 375
Left = 240
TabIndex = 18
Top = 360
Width = 855
End
Begin VB.Label Label5
Caption = "字体粗细:"
Height = 255
Left = 3480
TabIndex = 17
Top = 3120
Width = 975
End
Begin VB.Label Label1
Caption = "字样:"
Height = 255
Left = 240
TabIndex = 10
Top = 1110
Width = 1215
End
End
Attribute VB_Name = "frmFont"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'矩形
Private rctEscapement As RECT
'圆半径
Private m_intR As Integer
'缺省文本
Private Const m_strDefault = "字体编辑浏览程序 AaBbCc"
'旋转角度
Private m_dblEscapement As Double
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -