home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmInfo
- BorderStyle = 3 'Fixed Dialog
- Caption = "Form2"
- ClientHeight = 2790
- ClientLeft = 1365
- ClientTop = 2895
- ClientWidth = 5730
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2790
- ScaleWidth = 5730
- ShowInTaskbar = 0 'False
- Begin VB.TextBox Text1
- Height = 1755
- Left = 420
- MultiLine = -1 'True
- TabIndex = 1
- Text = "FNTVIEW2.frx":0000
- Top = 180
- Width = 4995
- End
- Begin VB.CommandButton Command1
- Caption = "Ok"
- Height = 435
- Left = 2460
- TabIndex = 0
- Top = 2280
- Width = 975
- End
- Attribute VB_Name = "frmInfo"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- ' Copyright
- 1997 by Desaware Inc. All Rights Reserved.
- Private Sub Command1_Click()
- Unload Me
- End Sub
- Private Sub Form_Load()
- Dim oldfont&
- Dim info&
- Dim t$
- Caption = Form1!FontList.Text
- oldfont& = SelectObject(hdc, FontToUse)
- info = GetFontLanguageInfo(hdc)
- ' Restore the original font
- Call SelectObject(hdc, oldfont&)
- If info = 0 Then
- Text1.Text = "Standard Latin Font"
- Else
- If (info And GCP_DBCS) <> 0 Then t$ = t$ & "Double Byte Character Set" & vbCrLf
- If (info And GCP_DIACRITIC) <> 0 Then t$ = t$ & "Contains diacritic characters" & vbCrLf
- If (info And FLI_GLYPHS) <> 0 Then t$ = t$ & "Font contains non-displaying glyphs" & vbCrLf
- If (info And GCP_GLYPHSHAPE) <> 0 Then t$ = t$ & "Font contains special glyph shapes" & vbCrLf
- If (info And GCP_KASHIDA) <> 0 Then t$ = t$ & "Font supports Kashida glyphs" & vbCrLf
- If (info And GCP_LIGATE) <> 0 Then t$ = t$ & "Font supports Kashida" & vbCrLf
- If (info And GCP_USEKERNING) <> 0 Then t$ = t$ & "Font contains kerning tables" & vbCrLf
- If (info And GCP_REORDER) <> 0 Then t$ = t$ & "Characters need to be reordered for this font" & vbCrLf
- Text1.Text = t$
- End If
- End Sub
-