Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Oct 2002
    Location
    Liverpool, N.Y.
    Posts
    6,085

    Default Technical question about control points

    There was a time when I was certain of the number and location of control poiunts in a given character in a typeface I'd use, because Program X or Program Y flashed a little thing on its splash screen "reading font metrics"...

    Does Xara even read font metrics at all?

    The reason I ask it that frequently I need to modify a glyph to make a logo or something. And Xara Designer 11 produces way more control points than I'd expect or want whenever I do the Ctrl+Shift+S thing:

    Click image for larger version. 

Name:	node-disparity.jpg 
Views:	203 
Size:	23.9 KB 
ID:	111371

    This is a fair comparison above: Here'a glyph shown with its original control points in FontLab (a font editor), at bottom. And then there's the glyph (top) when reduced to a path in Xara.


    Why? And is there a way to curtail this excessive control point thing?

    TIA,

    Gary

  2. #2

    Default Re: Technical question about control points

    Metrics? Yes, to a point (no pun intended). I don't think that control points are part of a font's metrics. Maybe, but I have never thought of them that way.

    Fundamentally, unless an application actually can utilize and draw curves according to whether a font is TT or OT, I think that the addition/subtraction of curves are needed. I would be extremely happy if application X would implement the control nodes as smooth curves where appropriate instead of cusps when type is converted to curves.

    I also think that this may be character related. In the screen shot below the on-curve points line up fairly well and the cusp handle adjustments match the off-curve points well.

    Click image for larger version. 

Name:	capture-003832.png 
Views:	164 
Size:	28.2 KB 
ID:	111377

    Mike

  3. #3
    Join Date
    Oct 2002
    Location
    Liverpool, N.Y.
    Posts
    6,085

    Default Re: Technical question about control points

    Mike, you're saying that the conversion from glyph to path involves absolutely no culling of control point info?

    Seems bass-ackwards to me when the data is already mapped out in the file.

    Thanks, though.

    Life sucks sometimes...

    -g

  4. #4

    Default Re: Technical question about control points

    No, I didn't mean that. In my example, the on-curve points as shown in my editor and the cusp points from XDP'S conversion literally are aligned (some are simply very close). The off-curve points from the font editor are still seen when they are outside curves.

    Techically in my example, XDP has about 30% fewer points than the font editor if the on- and off-curve points are added together. XDP has 50 some points on the same character as in my font editor, which has 95 points.

    What I was getting at, in my example XDP converted that A character with fewer points than are in the font editor. Your example has more points than your font editor. So perhaps it all depends on what character is converted to curves. Maybe even whether it is a TT or OT, seeing how technically they are different types of curves.

  5. #5
    Join Date
    Oct 2002
    Location
    Liverpool, N.Y.
    Posts
    6,085

    Default Re: Technical question about control points

    Thanks for your explanation, Mike.

    However, I still do not understand—and the lack of understanding is my own problem—why, if a program can "see", parse, understand a curve, why it doesn't see the tension and bias values of bounding control points and just use them when a gylph is "decompiled into a simpler vector form.

    In any event, it's a chore to eliminate unnecessary control points!

    My Best,

    Gary

  6. #6

    Default Re: Technical question about control points

    Dunno the answer, Gary.

    It works in the reverse--I can go from XDP or AI or CD and the on-curve control points are near identical in my font editor. So I think it can be done. That said, most of the characters I tried other than that 'A' convert fairly well.

    What font are you using in your example?

  7. #7
    Join Date
    Oct 2002
    Location
    Liverpool, N.Y.
    Posts
    6,085

    Default Re: Technical question about control points

    Okay, I did what should have been obvious from the get-go: it's no secret that Adobe Illustrator "pre-rolls" font data so there's not wait when the program loads, so you can get down to work, unlike Photoshop.

    I used a glyph from Zapf Dingbats. I think based on simplifying the glyph in Xara and in Illustrator, that Xara doesn't read all the font set data. Why else would Illustrator show a decompiled glyph as being node-for-node the same as it was designed (in the FontLab view)?

    I'm not trying to give the programmers at Xara a hard time. I know how to be a jerk using far less energy than here!

    Click image for larger version. 

Name:	control-points-in-Illustrator.jpg 
Views:	180 
Size:	32.3 KB 
ID:	111381


    I'd love to know the secret recipe Illustrator uses and see if it can't be applied to Xara. I'm having a devil of a time manually reworking glyph are so I can use fewer control points (thus fewer bumps in smooth "knots") in certain Xara pieces of Art and outlnes for modeling.

    Sigh,

    Gare

  8. #8

    Default Re: Technical question about control points

    This is what I get in XDPX11 when that character is converted to shapes/curves:

    Click image for larger version. 

Name:	capture-003834.png 
Views:	150 
Size:	10.8 KB 
ID:	111382

  9. #9
    Join Date
    Oct 2002
    Location
    Liverpool, N.Y.
    Posts
    6,085

    Default Re: Technical question about control points

    ...so this exercise can be repeated with consistency, mwenz! This is exactly my result.

    Which is an exact, inexact replica of the structure of the glyph.

    The reason I'm harping on this is that for the most part, modeling programs tend to put a kink in the outline of a 3D extruded shape when the control point isn't flawless, the number of control points are succinct) and the properties of a curve are correct.

    Click image for larger version. 

Name:	a127bbb055439fec6a49fa56123498df.jpg 
Views:	151 
Size:	22.4 KB 
ID:	111383

    The fewer connections I have, the less of a chance I fnd a bum one, as shown above.

    And all of these excessive son-of-a-guns have cusp, not smooth connections, if you or anyone else can confirm.

    Harumph. And it's only Tuesday!

    :)

    -g

  10. #10

    Default Re: Technical question about control points

    I think my screen shot shows the control points as per AI, not your screen shot of what your XDP is doing.

    To edit...yes, they are cups and not smooth points. I think I have mentioned that above. That is the only improvement I think is needed. At least in my conversion of type to curves.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •