Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Fonts in GeometryUtility.Types.FontModeType


Recommended Posts

Windows

vb.net vs 2005

Mastercam X5 Net Hook 2.0

 

Creating Letters - I only have a few options for Fonts when using this method; 8 types of drafting fonts and 4 Mastercam fonts. Is there a way to access the windows true type fonts?

 

Dim mLetters As New GeometryUtility.Types.LetterCreationData

mLetters.LetterText = "Test"

'mLetters.FontHeight = 3.5

mLetters.FontHeight = 1.5

'mLetters.FontMode = GeometryUtility.Types.FontModeType.MastercamBlockFont

mLetters.FontMode = GeometryUtility.Types.FontModeType.DraftingStickFont

mLetters.FontSpacing = 0.7

mLetters.FontAlignment = GeometryUtility.Types.FontAlignmentType.CurveBottom

mLetters.FontRadius = 55

mLetters.StartingPoint.x = 0

mLetters.StartingPoint.y = 0

mLetters.StartingPoint.z = 0

Mastercam.GeometryUtility.LetterCreationManager.CreateLetters(mLetters)

Link to comment
Share on other sites

It appears that you're found the (12) fonts that are currently supported via the (enum) FontModeType.

 

Is there another way to create letters, besides geometry utility, that I am missing that will enable me to use windows fonts? I thougt that in an earlier version of the net hook, 1.0, I used a different object to create letters and the windows fonts were available.

Link to comment
Share on other sites
I thougt that in an earlier version of the net hook, 1.0, I used a different object to create letters and the windows fonts were available.

Not that I am aware of.

I'd be very surprised that functionality was reduced from the old NETHook to the newer NETHook2.

I don't have the source for the old (X4) NETHook.DLL handy, but looking at it in .NET Reflector I do not even see anything that looks like Create Letters.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...