Mass transfer of value fields ?

Get help with FontCreator here. Please do not post feature requests or bug reports here.
Post Reply
Bernie Cossentino
Posts: 65
Joined: Sun Sep 02, 2018 1:24 am

Mass transfer of value fields ?

Post by Bernie Cossentino »

Hello,

Does Font Creator allow the facilitation of transferring values from one value field to another for numerous pairs? For example, if I wish to transfer all my right side "XPlacement" values to the left XAdvance, can this be done as a mass edit for all affected pairs in a lookup (or, if in the editor...as a selection?
Font Creator 13
Windows 7 and 10 Pro
Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 9878
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: Mass transfer of value fields ?

Post by Bhikkhu Pesala »

If a kerning lookup has any XPlacement Values, the Show Advanced Settings checkbox will disappear and the pos lookups will all have four values like this (I added an XPlacement value of 5 for @hyphen @J_Caps).

Code: Select all

  subtable "Subtable Hyphen" {
    pos @hyphen @J_Caps <5 0 -124 0> <0>;
    pos @hyphen @M_Caps <0 0 29 0> <0>;
So, presumably your lookup table looks something like this:

Code: Select all

  subtable "Subtable Hyphen" {
    pos @hyphen @J_Caps <-124 0 0 0> <0>;
    pos @hyphen @M_Caps <29 0 0 0> <0>;
You will need to run three replace operations:
1. Replace "<" with "<0 0 "
2. Replace " 0 0>" with ">"
3. Replace "<00 0>" with "<0>"

Please test carefully before saving any changes.
My FontsReviews: MainTypeFont CreatorHelpFC15 + MT12.0 @ Win 10 64-bit build 19045.2486
Bernie Cossentino
Posts: 65
Joined: Sun Sep 02, 2018 1:24 am

Re: Mass transfer of value fields ?

Post by Bernie Cossentino »

Bhikkhu Pesala wrote: Wed May 06, 2020 5:53 am If a kerning lookup has any XPlacement Values, the Show Advanced Settings checkbox will disappear and the pos lookups will all have four values like this (I added an XPlacement value of 5 for @hyphen @J_Caps).

Code: Select all

  subtable "Subtable Hyphen" {
    pos @hyphen @J_Caps <5 0 -124 0> <0>;
    pos @hyphen @M_Caps <0 0 29 0> <0>;
So, presumably your lookup table looks something like this:

Code: Select all

  subtable "Subtable Hyphen" {
    pos @hyphen @J_Caps <-124 0 0 0> <0>;
    pos @hyphen @M_Caps <29 0 0 0> <0>;
You will need to run three replace operations:
1. Replace "<" with "<0 0 "
2. Replace " 0 0>" with ">"
3. Replace "<00 0>" with "<0>"

Please test carefully before saving any changes.
Thank you Bhikkhu,

I already do some of this. Unfortunately, it's difficult when you also have YPlacement values to deal with, as is my case.
Font Creator 13
Windows 7 and 10 Pro
Post Reply