How to copy anchor data in volt?

arifkarim's picture

Hi, all
I was making a qurani font.... and here i have put all marks in only one position. How ever for some marks like, superscript alef are placed slightly differently, so they cannot be put at the same point as fatha and dammatan.....

Thats wht i want to copy anchor; attach1 to a new anchor; attach3 and I want to preserve all its anchor data.

See the attachments.....

Can some one help me plz............... specially Hudson and Surgey :)

Thnx

AttachmentSize
a181.gif15.35 KB
a182.gif15.59 KB
John Hudson's picture

1. Make a GPOS mark attachment lookup in which the alifcomb glyph is positioned using the attach1 anchor. Only include in this lookup any glyphs that you eventually want to be positioned with the attach3 anchor.

2. Export this lookup to a .vtl text file.

3. Open the .vtl file in a text editor. Search for

attach1"

and replace with

attach3"

i.e. rename the anchors without changing the attachment offsets. Save.

4. Import the edited .vtl back into VOLT. If asked if you want to replace existing attach3 anchors, say YES.

This will create attach3 anchors with the same positions as attach1 anchors, and these can now be edited for specific base glyphs. Note that anchors are stored internally in VOLT, so if you have existing lookups that reference both attach1 and attach3 the latter will inherit your new positioning. In this case, you can delete the working lookups used to export and import .vtl files.

arifkarim's picture

hopp la, thnx it works!

Syndicate content Syndicate content