? FP VB -- listing installed fonts, paste as picture

G

Guest

Hi all...

1) Looking for pointers on generating a list of the installed
fonts, returning each fontname as would be used in HTML
or CSS code.

2) Also, is there a way with FP VBA to copy a block of formatted
text and then paste it back in as a bitmap, or even a PNG?
In Word, for example, there used to be a Copy As Picture
feature, and a Paste Special option for pasting a bitmap.
There's a Paste Special as Picture option, but the object
created isn't a pixel object, but a composite drawing object
containing the original font information.

In Excel, however, you can select some text, press Shift,
and choose Copy Picture--a dialog then appears giving
you the option of copying as a bitmap (by which they
mean a BMP, right?).

OK, fine. I can do this in Excel, via generalization of the
code

Sub SetFont()
With Selection.Font
.Name = "Trebuchet MS"
.Size = 9
End With
Selection.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
Range("D5").Select
ActiveSheet.Paste
End Sub

And then save the sheet as HTML and import it into
FrontPage. HOWEVER, there's a lot of VML code in there,
with the font pics saved as PNGs...good...hmmm...
what's the best known way to convert VML into some
approximation of standard HTML?

Thanks and regards,
mvsmith
 

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