Skip to content

Commit 73ae033

Browse files
John ColomboJohn Colombo
authored andcommitted
Correctly document FontObj.otherFontsWithSameDict
It should be a property, not a method.
1 parent 17d2f8a commit 73ae033

File tree

2 files changed

+20
-25
lines changed

2 files changed

+20
-25
lines changed

docs/introduction/changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ What's new and changed for scripting?
2020
- Scripting methods and attributes added:
2121
- Added: [CharacterRange.pasteFrom()](../text/characterrange.md#characterrangepastefrom)
2222
- Added: [FontObject.hasGlyphsFor()](../text/fontobject.md#fontobjecthasglyphsfor)
23-
- Added: [FontObject.otherFontsWithSameDict()](../text/fontobject.md#fontobjectotherfontswithsamedict)
23+
- Added: [FontObject.otherFontsWithSameDict](../text/fontobject.md#fontobjectotherfontswithsamedict)
2424
- Added: [FontsObject.getCTScriptForString()](../text/fontsobject.md#fontsobjectgetctscriptforstring)
2525
- Added: [FontsObject.getDefaultFontForCTScript()](../text/fontsobject.md#fontsobjectgetdefaultfontforctscript)
2626
- Added: [FontsObject.setDefaultFontForCTScript()](../text/fontsobject.md#fontsobjectsetdefaultfontforctscript)

docs/text/fontobject.md

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,25 @@ String; read-only.
230230

231231
---
232232

233+
### FontObject.otherFontsWithSameDict
234+
235+
`app.fonts.fontsWithDefaultDesignAxes[0].otherFontsWithSameDict`
236+
237+
!!! note
238+
This functionality was added in After Effects (Beta) 25.0 and is subject to change while it remains in Beta.
239+
240+
#### Description
241+
242+
Returns an Array of [Font object](#font-object) instances which share the same font dictionary as this [Font object](#font-object).
243+
244+
Will return an empty Array if this [Font object](#font-object) is not a Variable font, or the Variable font only has one instance.
245+
246+
#### Type
247+
248+
Array of [Font objects](#font-object); read-only.
249+
250+
---
251+
233252
### FontObject.postScriptName
234253

235254
`app.fonts.allFonts[0][0].postScriptName`
@@ -475,30 +494,6 @@ Boolean.
475494

476495
---
477496

478-
### FontObject.otherFontsWithSameDict()
479-
480-
`app.fonts.fontsWithDefaultDesignAxes[0].otherFontsWithSameDict(fontObject)`
481-
482-
!!! note
483-
This functionality was added in After Effects (Beta) 25.0 and is subject to change while it remains in Beta.
484-
485-
#### Description
486-
487-
Given an [Font object](#font-object) passed as an argument, returns an Array of [Font object](#font-object) instances which share the same font dictionary as the [Font object](#font-object) the function is called on.
488-
489-
Will return an empty Array if the argument is not a Variable font, or the Variable font only has one instance (the parameter one).
490-
491-
#### Parameters
492-
493-
| Parameter | Type | Description |
494-
| ------------ | --------------------------- | --------------- |
495-
| `fontObject` | [Font object](#font-object) | Object to check |
496-
497-
#### Returns
498-
499-
Array of [Font objects](#font-object), may be empty.
500-
501-
---
502497

503498
### FontObject.postScriptNameForDesignVector()
504499

0 commit comments

Comments
 (0)