สคริปต์ฟรีสองตัวสำหรับ FontLab 8 — Autotune วาง anchor และสร้าง ccmp / mark / mkmk ส่วน Autokern จัดช่องไฟและ kerning จากรูปทรงจริงของตัวอักษร Two free scripts for FontLab 8 — Autotune places anchors and builds ccmp / mark / mkmk, Autokern sets spacing and kerning from the actual outlines.
วาง anchor ให้พยัญชนะ สระ และวรรณยุกต์จากรูปทรงของแต่ละตัว แล้วเขียน feature ให้พร้อม CompilePlaces anchors on consonants, vowels and tone marks from each glyph’s shape, then writes features ready to compile.
top / bottom ของพยัญชนะ และ _top / _bottom ของสระและวรรณยุกต์ คำนวณจากกรอบเส้นของแต่ละตัว โดยอ้างอิงความสูงพยัญชนะที่ดึงจาก ก ด บ หรือ อConsonant top / bottom and mark _top / _bottom are computed from each glyph’s ink bounds, referenced to the consonant height read from ก ด บ or อ.
เลื่อนสระบนหลบหาง ป ฝ ฟ ฬ และสลับ ญ ฐ เป็นตัวตัดเชิงเมื่อมีสระล่าง ทำงานทุกโหมดShifts upper marks away from the tails of ป ฝ ฟ ฬ and swaps ญ ฐ for their descender-less forms above lower vowels.
โหมดละเอียดแยก anchor ตามวรรณยุกต์แต่ละตัว และเลื่อนวรรณยุกต์หรือสระได้ทีละตัวDetailed mode gives each tone mark its own anchor, with adjustable offsets for every mark.
feature ที่คุณเขียนเองจะไม่ถูกเขียนทับถ้าไม่อนุญาต ใช้ได้ทุก master และมีปุ่มตรวจ OT Class ของ glyph ไทยYour own features are never overwritten unless you allow it; works across masters and can check Thai OT glyph classes.
วัดขอบซ้าย–ขวาของเส้นทีละระดับความสูง แล้วจัดระยะให้ตัวกลม เฉียง และเว้าดูสมดุลกับตัวตรงMeasures each outline’s left and right edges band by band, so round, diagonal and open shapes balance against straight ones.
ตัดเส้นแต่ละตัวเป็นแถบแนวนอนจาก baseline ถึงความสูงอ้างอิง แล้ววัดว่าเส้นเว้าเข้าไปลึกแค่ไหนEach outline is sliced into horizontal bands from baseline to reference height to measure how deep its sides recede.
ดึงคู่ที่ห่างกว่าคู่ตัวตรงเข้าหากัน เช่น T–o, A–V และไม่ยุ่งกับคู่ที่สมดุลอยู่แล้ว เช่น o–oPairs that sit wider than straight–straight are pulled in (T–o, A–V); balanced pairs like o–o are left alone.
วัดและเขียนแยกตามรูปทรงของแต่ละ master ลงตาราง Kerning ของ master นั้นโดยตรงMeasures each master separately and writes to that master’s own kerning table.
เลือกล้างคู่เดิมได้ โดยลบเฉพาะคู่ glyph–glyph ในกลุ่มที่เลือก คู่ class ไม่ถูกแตะOptionally clears old pairs — only glyph–glyph pairs within the chosen scripts; class pairs are kept.
วางไฟล์ในโฟลเดอร์ Scripts ของ FontLab แล้วเรียกใช้จากเมนูDrop the files into FontLab’s Scripts folder and run them from the menu.
~/Library/Application Support/FontLab/FontLab 8/Scripts
สคริปต์แก้ฟอนต์โดยตรง ให้ทดสอบกับไฟล์สำเนาก่อนเสมอ และจะมีหน้าต่างให้ยืนยันก่อนแก้ทุกครั้งThe scripts edit your font directly. Always test on a copy — every change asks for confirmation first.
เลือกขอบเขต “Glyph ที่เปิดอยู่” เพื่อลองกับตัวเดียวก่อน ในโหมดนี้ Autotune จะไม่แตะ FeaturesChoose “Active glyph” to try a single glyph; Autotune leaves Features untouched in this mode.
กด “รายละเอียด” ที่ด้านล่างหน้าต่างเพื่อดู log ระบบจะเปิดให้เองเมื่อมีข้อผิดพลาด ดูวิธีแก้ได้ในOpen “Details” at the bottom of the window for the log — it opens by itself on errors. See the คู่มือmanual