How can I align the first alphabet of the word to the left most edge of the text box? By default InDesign leaves some gap on left even when I create text in text box within a new document.
if the two lines are one paragraph each you could add a blank character as the first character in each paragraph and do kerning between the blank and the first reading character in the paragraph. From my German InDesign where I used a text frame inset of 2 mm to better show the first blank in every paragraph:
The first two character pairs in every paragraph are differently kerned.
Above the text cursor is between the blank and the character I of the second paragraph where I did a manual kerning of -280.
( ACP )
Thanks a lot for replying. I'm not totally able to understand your method. But what I can figure out is that you are doing some manual adjustment till the alphabets are perfectly aligned. Can you please share a soft copy of this file? I will be able to understand fully your method after going through the settings of each line.
You remove the colour for the blank characters so that they remain invisible?
•Type a space in front of the line’s first letter
• Set your cursor between the space and the letter
• Adjust the Character Panel’s Kerning to a negative amount. You can also select the space character, and set the Tracking to a negative amount.
A blank character is invisible by default. Depending on the justification you would best do this with a fixed width character without any width: A SpecialCharacters.ZERO_WIDTH_NONJOINER would do.
Sorry, but I did not save the document after doing my screenshot.
Best try this yourself. Add a blank character at the beginning of a paragraph.
And kern between that blank character and the first character of your inital paragraph.
Basically that's it. And yes, the kerning values are up to you and your typographical eye.
You may ask how to add that special character I mentioned above:
app.selection.texts.insertionPoints.contents = SpecialCharacters.ZERO_WIDTH_NONJOINER;
Or select the paragraph and do a GREP Find/Change action:
( ACP )
Ok. Below another screenshot and the link to that document on my Dropbox.
Text frame on top with kerning the special character and the first character of the paragraph.
Text frame at the bottom: No special character and no kerning.
Download my sample document ( InDesign 2020 version 220.127.116.11 ) :
( ACP )
Thanks a ton. Now I understand completely. So eventually there's no easy way to snap the edges of the alphabets to the edge of the textbox. One has to do manual adjustment and there's no magic number.
It’s because all fonts have a side bearing dimension:
or you can do that in affinity publisher very easily
That may be so - and other software can handle it better too.
But this is an InDesign forum - if you're only here to push an Affinity agenda then I'll politely ask you to cease as it's not helpful to someone looking for an InDesign solution.
well, the alignment, the values for kerning, could be scripted.
However, with fancy fonts, eg. for handwriting, you still have to this individually.
( ACP )
> well, the alignment, the values for kerning, could be scripted.
It contains (among other things) a section on how to use the method described by Uwe.