How do I print out a full list of fonts?

R

rabbit

I'd like to see all fonts on a list/page instead of clicking each one, one at
a time. Is that possible?
 
R

Riverman

Do a search for font folders and right click in an open space and click VIEW
then LIST.
 
S

StevenM

'
' List All Fonts: creates a new blank document & a table,
' and then inserts a sample of each available font.
'
Sub ListAllFonts()
Dim Index As Integer
Dim oTable As Table
Dim newDoc As Document
Dim nFonts As Long
Dim ptWidth As Single

Application.ScreenUpdating = False
nFonts = FontNames.Count
Set newDoc = Documents.Add
With newDoc.PageSetup
ptWidth = PicasToPoints(51) - (.RightMargin + .LeftMargin)
End With
Set oTable = newDoc.Tables.Add(Selection.Range, nFonts + 1, 2)
With oTable
.Borders.Enable = False
.Range.Cells.VerticalAlignment = wdCellAlignVerticalCenter
.Rows.AllowBreakAcrossPages = False
.TopPadding = PicasToPoints(0.5)
.BottomPadding = PicasToPoints(0.5)
.Columns(1).PreferredWidth = ptWidth * 0.35
.Columns(2).PreferredWidth = ptWidth * 0.65
End With
With oTable.Cell(1, 1).Range
.Font.Name = "Arial"
.Font.Bold = True
.InsertAfter "Font Name"
End With
With oTable.Cell(1, 2).Range
.Font.Name = "Arial"
.Font.Bold = True
.InsertAfter "Font Example"
End With
For Index = 1 To nFonts
Application.StatusBar = "Adding " & nFonts & " Fonts to Table: " &
Index
With oTable.Cell(Index + 1, 1).Range
.Font.Name = "Arial"
.Font.Size = 12
.InsertAfter FontNames(Index)
End With
With oTable.Cell(Index + 1, 2).Range
.Font.Name = FontNames(Index)
.Font.Size = 12
.LanguageID = wdNoProofing
.InsertAfter "ABCDEFGHIJKLMNOPQRSTUVWXYZ" _
& vbCr & "abcdefghijklmnopqrstuvwxyz" _
& vbCr & "1234567890"
End With
Next Index
oTable.Sort SortOrder:=wdSortOrderAscending
Application.ScreenUpdating = True
newDoc.Range(0, 0).Select
ActiveWindow.View.Type = wdPrintView
ActiveWindow.View.Zoom.PageFit = wdPageFitBestFit
End Sub

Steven Craig Miller
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top