Jump to content

FONT ID SCRIPT


axiom

Recommended Posts

axiom,

This script is not elegant, but it will give you the FontID of the first selected object, if it is of type TEXT.

For scripting questions, you would do better to post them in the VectorScript section of the board. I would not have seen your question in the LANDMARK section had the title not caught my eye on the main topic page.

HTH,

Raymond

Procedure GetFID;

{ Get a text object's Font ID. }

VAR

TxtHnd: Handle;

BEGIN

TxtHnd := FSActLayer;

if (TxtHnd<>nil) and (GetType(TxtHnd)=10) then

Message('FID = ', GetTextFont(TxtHnd, 0));

END; { End GetFID }

Run(GetFID);

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...