# What happened to GSFontInfoValue in G4?

**URL:** <https://forum.glyphsapp.com/t/what-happened-to-gsfontinfovalue-in-g4/37206>\
**Category:** Scripting\
**Created:** [September 4, 2026, 10:36am UTC](https://forum.glyphsapp.com/t/what-happened-to-gsfontinfovalue-in-g4/37206 "2026-09-04T10:36:23Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkutilek](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/jkutilek/32/29173_2.png) [@jkutilek](https://forum.glyphsapp.com/u/jkutilek)\
**Post date:** [September 4, 2026, 10:36am UTC](https://forum.glyphsapp.com/t/what-happened-to-gsfontinfovalue-in-g4/37206/1 "2026-09-04T10:36:23Z")

</div>

I’m constructing GSFontInfoValue in Glyphs 3, and add it to the font. But the script doesn’t run anymore in Glyphs 4:

```bash
ImportError: cannot import name 'GSFontInfoValue' from 'GlyphsApp'
(/Applications/Glyphs 4.app/Contents/Scripts/GlyphsApp/ __init__.py).
Did you mean: 'GSInfoValue'?

```

I don’t think GSInfoValue is the correct replacement, or is it?

---

<div class="post-metadata">

**Author:** ![jkutilek](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/jkutilek/32/29173_2.png) [@jkutilek](https://forum.glyphsapp.com/u/jkutilek)\
**Post date:** [September 4, 2026, 10:40am UTC](https://forum.glyphsapp.com/t/what-happened-to-gsfontinfovalue-in-g4/37206/2 "2026-09-04T10:40:29Z")

</div>

When I try to use GSInfoValue, the script doesn’t run in Glyphs 3 anymore:

```bash
AttributeError: 'GSInfoValue' object has no attribute 'languageTag'

```

---

<div class="post-metadata">

**Author:** ![jkutilek](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/jkutilek/32/29173_2.png) [@jkutilek](https://forum.glyphsapp.com/u/jkutilek)\
**Post date:** [September 4, 2026, 10:46am UTC](https://forum.glyphsapp.com/t/what-happened-to-gsfontinfovalue-in-g4/37206/3 "2026-09-04T10:46:56Z")

</div>

Also, this doesn’t work anymore in Glyphs 4:

```python
from GlyphsApp import Glyphs
for key, metric in Glyphs.font.masters[0].metrics.items():
	print(key, metric)

```

Result:

```bash
Traceback (most recent call last):
  File "Macro 2.py", line 2
  File " __init__.py", line 618, in items
    yield (self.getKeyOf(v), v)
           ~~~~~~~~~~~~~ ^^^
  File " __init__.py", line 3121, in getKeyOf
    raise NotImplementedError()
NotImplementedError

```

---

<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:** [September 5, 2026, 9:46pm UTC](https://forum.glyphsapp.com/t/what-happened-to-gsfontinfovalue-in-g4/37206/4 "2026-09-05T21:46:56Z")

</div>

Yes. There were many classes with “GSFontInfo…” and that got in the way when code completion would suggest them when I need GSFont. And some of them live in masters or instances. So I removed the “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:** [September 5, 2026, 9:57pm UTC](https://forum.glyphsapp.com/t/what-happened-to-gsfontinfovalue-in-g4/37206/5 "2026-09-05T21:57:53Z")

</div>

Glyphs 3 still uses the “GSFontInfoValue”. There is a “GSInfoValue” in Glyph 3, but that is something else. Can you show what you are trying to do? I don’t think you need to deal with those objects directly. You should be able to use

```auto
- (void)setProperty:(GSPropertyName)name value:(id)value languageTag:(nullable NSString *)languageTag;

```

and related method of the font or instance. [GSFont setProperty:value:languageTag: — Glyphs API Documentation](https://docu.glyphsapp.com/Core/GlyphsCore/GSFont/setProperty:value:languageTag:/)

---

<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:** [September 5, 2026, 10:22pm UTC](https://forum.glyphsapp.com/t/what-happened-to-gsfontinfovalue-in-g4/37206/6 "2026-09-05T22:22:06Z")

</div>

> [@jkutilek](#):
>
> ```auto
> from GlyphsApp import Glyphs
> for key, metric in Glyphs.font.masters[0].metrics.items():
> print(key, metric)
> 
> ```

I fixed the `master.metrics.items()`. This is how it works internally:

```auto
	def items(self) -> Iterator[Tuple[str, GSMetricStore]]:
		if self._owner.font is None:
			return
		for metric in self._owner.font.metrics:
			yield (metric.id, self._owner.valueForMetric_(metric))

```

actually iterating the metrics on the font and then get each value from the master (it is stored as a dict internally).

---

<div class="post-metadata">

**Author:** ![jkutilek](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/jkutilek/32/29173_2.png) [@jkutilek](https://forum.glyphsapp.com/u/jkutilek)\
**Post date:** [September 6, 2026, 10:20am UTC](https://forum.glyphsapp.com/t/what-happened-to-gsfontinfovalue-in-g4/37206/7 "2026-09-06T10:20:51Z")

</div>

Actually I’m trying to import AFDKO feature code into a Glyphs font. During that, I interpret the first comment line in a ssXX feature as the friendly feature name, and want to add it to the feature.

```python
if "#" in line:
    _, comment = line.split("#", 1)
    label = GSFontInfoValue()
    label.languageTag = "dflt"
    label.value = comment.strip()

feature_code.append(line)

# ...

gsfea = GSFeature(tag, "\n".join(feature_code))
if label is not None:
    gsfea.labels.append(label)

```

(This is in a file format plugin, so importing the feature code via _File – Import – Features…_ is not feasible.)

---

<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:** [September 6, 2026, 10:45am UTC](https://forum.glyphsapp.com/t/what-happened-to-gsfontinfovalue-in-g4/37206/8 "2026-09-06T10:45:45Z")

</div>

Just to be sure. Did you try:

```auto
GSFont
 - (BOOL)importFeatures:(NSString *)feaString error:(out NSError **)error;

```

---

<div class="post-metadata">

**Author:** ![jkutilek](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/jkutilek/32/29173_2.png) [@jkutilek](https://forum.glyphsapp.com/u/jkutilek)\
**Post date:** [September 7, 2026, 10:19am UTC](https://forum.glyphsapp.com/t/what-happened-to-gsfontinfovalue-in-g4/37206/9 "2026-09-07T10:19:46Z")

</div>

I found that to be unreliable, that’s why I wrote my own logic. And I would need to process the feature file anyway, to extract the comment line in Stylistic Set features to the friendly feature name.

---

<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:** [September 7, 2026, 11:05am UTC](https://forum.glyphsapp.com/t/what-happened-to-gsfontinfovalue-in-g4/37206/10 "2026-09-07T11:05:41Z")

</div>

I see. I’ll have a look at the feature name import. Should be done in Glyphs, too. Any other suggestions?

The labels are “GSInfoValueLocalized”.
