As I understand the term "Kerning", it's the ability to fine tune the spacing between individual letters. Is that what you want to do?
I don't see why/how you would use a repeating field for that.
With the letters in individual fields or as layout text where each letter is in its own text object, you could manually, while in layout mode, adjust the spacing between each field and layout object.
But that's a static, layout change--not something that can automatically adjust for different settings for different text.
So I'm printing onto a government document and some of the fields(like name) have to have each letter positioned in a box.
But if this is a case of printing on preprinted forms where the text must fit within the boundaries of the box, I'd change the text size specified for the text to better fit it to the box. There are several ways to do this that I can think of and none use a repeating field.
Hey PhilmodJunk, thanks for your response!!! I may not have done a good job explaining the problem. Most often just regular spacing will do. If you look at the pic, there are some times when specific and wide spacing is needed(such as "last Name" in the pic) and I cant find a way to do it.
What are your thoughts
Ok, that makes sense.
Yes I can see the value of using a repeating field as you can resize the repeating field to fit the space requirements of your letter for letter boxes on the form.
Do you need to know how to take text in a field and fill a repeating field's repetitions with individual letters?
Do you have FileMaker Advanced? (this is not necessary, but offers a very nice option to do this with a custom function.)
I've got filemaker pro advanced 12.01 and I do need to know how to take text in a field and fill a repeating field's repetitions with individual letters :)
Hmmm, I was all set to do this as a custom function and just realized that what I had in mind would require executing a script step inside a custom function and that doesn't work...
After further thought, let's go with a looping script but generalized so that you can pass it both the field name reference and the text to be parsed into repetitions of the specified field:
Set Variable [$FieldRef ; value: GetValue ( Get ( ScriptParameter ) ; 1 ) ]
Set Variable [$Text ; value ; GetValue ( Get ( ScriptParameter ) ; 2 ) ]
Set Variable [$K ; value: $K + 1 ]
Exit Loop If [ $K > Length ( $Text ) ]
Set Field By Name [ $FieldRef & "[" & $K & "]" ; Middle ( $Text ; $K ; 1 ) ]
to use the script, use a button, script trigger or perform script script step with a script parameter.
To set the repetitions of a field named Form::LastNameRepeating to the letters from Form::LastName, your script parameter expression would look like:
List ( GetFieldName ( Form::LastNameRepeating ) ; Form::LastName )
I do need to know how
No script is required, only a calculated repeating field with calc:
Middle ( Extend ( text ) ; Get ( CalculationRepetitionNumber ) ; 1 )
Old formula !
Hi and thanks for your response. I'm trying it and it works for the firts letter but the second field gives me the first and second letters rather than just the second.
Which is the name of your text field ?
Have you created a calculation field with how many reps ?
it works for the firts letter but the second field gives me the first and second letters
That result may apply if you changed my calculation with this which is wrong:
Middle ( Extend ( text ) ; 1 ; Get ( CalculationRepetitionNumber ) )
I dont understand what a repetition field is. I had just created a text field ( ie firstName1 for the first letter of the first name and firstName2 etc)
The calculation fort firstName2 is Middle ( Extend ( Last Name) ; Get ( CalculationRepetitionNumber ) ; 2 )
"I dont understand what a repetition field is"
So we go to create one... see the picture
OK Ive got the repition field set to text with 10 reps, Just in case ive missed something, that still leaves me with one field with the first lestter (C) i it.