# Can vertical metrics not be exported and imported?

**URL:** <https://forum.glyphsapp.com/t/can-vertical-metrics-not-be-exported-and-imported/37399>\
**Category:** Glyphs\
**Created:** [October 2, 2026, 5:12am UTC](https://forum.glyphsapp.com/t/can-vertical-metrics-not-be-exported-and-imported/37399 "2026-10-02T05:12:56Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![wstytdzj](https://forum.glyphsapp.com/letter_avatar_proxy/v4/letter/w/58956e/32.png) [@wstytdzj](https://forum.glyphsapp.com/u/wstytdzj)\
**Post date:** [October 2, 2026, 5:12am UTC](https://forum.glyphsapp.com/t/can-vertical-metrics-not-be-exported-and-imported/37399/1 "2026-10-02T05:12:56Z")

</div>

Override the current font’s vertical metrics with those of another font.

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [October 2, 2026, 6:09am UTC](https://forum.glyphsapp.com/t/can-vertical-metrics-not-be-exported-and-imported/37399/2 "2026-10-02T06:09:28Z")

</div>

What do you mean?

---

<div class="post-metadata">

**Author:** ![wstytdzj](https://forum.glyphsapp.com/letter_avatar_proxy/v4/letter/w/58956e/32.png) [@wstytdzj](https://forum.glyphsapp.com/u/wstytdzj)\
**Post date:** [October 2, 2026, 6:40am UTC](https://forum.glyphsapp.com/t/can-vertical-metrics-not-be-exported-and-imported/37399/3 "2026-10-02T06:40:01Z")

</div>

How to transfer the vertical metrics of one font to another? This:

 ![截屏2026-10-02 14.36.51](https://forum.glyphsapp.com/uploads/default/original/3X/3/d/3d6d5a91213c190c29feb2bbdf4dc1695d1a5df9.jpeg)

---

<div class="post-metadata">

**Author:** ![mekkablue](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/mekkablue/32/23_2.png) [@mekkablue](https://forum.glyphsapp.com/u/mekkablue)\
**Post date:** [October 2, 2026, 6:49am UTC](https://forum.glyphsapp.com/t/can-vertical-metrics-not-be-exported-and-imported/37399/4 "2026-10-02T06:49:37Z")

</div>

Copy, paste.

---

<div class="post-metadata">

**Author:** ![wstytdzj](https://forum.glyphsapp.com/letter_avatar_proxy/v4/letter/w/58956e/32.png) [@wstytdzj](https://forum.glyphsapp.com/u/wstytdzj)\
**Post date:** [October 2, 2026, 7:58am UTC](https://forum.glyphsapp.com/t/can-vertical-metrics-not-be-exported-and-imported/37399/5 "2026-10-02T07:58:13Z")

</div>

Can all be copied and pasted at once?

---

<div class="post-metadata">

**Author:** ![SCarewe](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/scarewe/32/18952_2.png) [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Post date:** [October 2, 2026, 8:00am UTC](https://forum.glyphsapp.com/t/can-vertical-metrics-not-be-exported-and-imported/37399/6 "2026-10-02T08:00:35Z")

</div>

Yes. Just try it.

---

<div class="post-metadata">

**Author:** ![wstytdzj](https://forum.glyphsapp.com/letter_avatar_proxy/v4/letter/w/58956e/32.png) [@wstytdzj](https://forum.glyphsapp.com/u/wstytdzj)\
**Post date:** [October 2, 2026, 8:08am UTC](https://forum.glyphsapp.com/t/can-vertical-metrics-not-be-exported-and-imported/37399/7 "2026-10-02T08:08:08Z")

</div>

I won’t be fooled. Is there really no other way?

---

<div class="post-metadata">

**Author:** ![SCarewe](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/scarewe/32/18952_2.png) [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Post date:** [October 2, 2026, 8:20am UTC](https://forum.glyphsapp.com/t/can-vertical-metrics-not-be-exported-and-imported/37399/8 "2026-10-02T08:20:00Z")

</div>

To do what?

---

<div class="post-metadata">

**Author:** ![wstytdzj](https://forum.glyphsapp.com/letter_avatar_proxy/v4/letter/w/58956e/32.png) [@wstytdzj](https://forum.glyphsapp.com/u/wstytdzj)\
**Post date:** [October 2, 2026, 10:49am UTC](https://forum.glyphsapp.com/t/can-vertical-metrics-not-be-exported-and-imported/37399/9 "2026-10-02T10:49:39Z")

</div>

Migrate all vertical metrics of a font to another font at once.

---

<div class="post-metadata">

**Author:** ![SCarewe](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/scarewe/32/18952_2.png) [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Post date:** [October 2, 2026, 11:55am UTC](https://forum.glyphsapp.com/t/can-vertical-metrics-not-be-exported-and-imported/37399/10 "2026-10-02T11:55:19Z")

</div>

Then copy them over.

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [October 2, 2026, 12:13pm UTC](https://forum.glyphsapp.com/t/can-vertical-metrics-not-be-exported-and-imported/37399/11 "2026-10-02T12:13:00Z")

</div>

You mean for all masters? Copy pasting would only do it for the current master. For all masters that have the same vertical metrics, you should be able to select them in the left list and paste to all of them.

---

<div class="post-metadata">

**Author:** ![wstytdzj](https://forum.glyphsapp.com/letter_avatar_proxy/v4/letter/w/58956e/32.png) [@wstytdzj](https://forum.glyphsapp.com/u/wstytdzj)\
**Post date:** [October 2, 2026, 6:23pm UTC](https://forum.glyphsapp.com/t/can-vertical-metrics-not-be-exported-and-imported/37399/12 "2026-10-02T18:23:16Z")

</div>

Replace all vertical metrics with one click.

 ![截屏2026-10-03 02.24.00](https://forum.glyphsapp.com/uploads/default/original/3X/6/1/61a1a21a1b3e47a619c661d34353b22e14c6e443.png)

---

<div class="post-metadata">

**Author:** ![wstytdzj](https://forum.glyphsapp.com/letter_avatar_proxy/v4/letter/w/58956e/32.png) [@wstytdzj](https://forum.glyphsapp.com/u/wstytdzj)\
**Post date:** [October 2, 2026, 7:29pm UTC](https://forum.glyphsapp.com/t/can-vertical-metrics-not-be-exported-and-imported/37399/13 "2026-10-02T19:29:52Z")

</div>

```python
from fontTools.ttLib import TTFont

src = TTFont("源字体.otf") # 提供度量的一方
dst = TTFont("目标字体.otf") # 被替换的一方

k = dst["head"].unitsPerEm / src["head"].unitsPerEm # UPM 不同时按比例换算

hhea, os2 = dst["hhea"], dst["OS/2"]
s_hhea, s_os2 = src["hhea"], src["OS/2"]

hhea.ascent, hhea.descent, hhea.lineGap = (
    round(s_hhea.ascent * k),
    round(s_hhea.descent * k),
    round(s_hhea.lineGap * k),
)
os2.sTypoAscender = round(s_os2.sTypoAscender * k)
os2.sTypoDescender = round(s_os2.sTypoDescender * k)
os2.sTypoLineGap = round(s_os2.sTypoLineGap * k)
os2.usWinAscent = round(s_os2.usWinAscent * k)
os2.usWinDescent = round(s_os2.usWinDescent * k)

dst.save("目标字体_迁移后.otf")

```

* * *

——fontTools——

能不能把这个功能在Glyphs 3 里用图形界面的方式实现？  
Can this feature be implemented in Glyphs 3 using a graphical interface?

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [October 2, 2026, 8:55pm UTC](https://forum.glyphsapp.com/t/can-vertical-metrics-not-be-exported-and-imported/37399/14 "2026-10-02T20:55:13Z")

</div>

That would not work as good in Glyphs. Importing a font file and converting it into Glyphs’ objects and exporting it again will not produce the same binary and some details will be lost. You can compare it to the difference between an Indesign file and a .pdf.
