Skip to content

Commit 073df12

Browse files
committed
update get doc
1 parent b843384 commit 073df12

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

uing.nim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,16 +739,17 @@ proc remove*(otf: OpenTypeFeatures; abcd: string) =
739739
proc get*(otf: OpenTypeFeatures; a, b, c, d: char, value: var int): bool =
740740
## Determines whether the given feature tag is present in `otf`.
741741
## If it is, `value` is set to the tag's value and
742-
## nonzero is returned. Otherwise, zero is returned.
742+
## `true` is returned. Otherwise, `false` is returned.
743743
##
744-
## Note that if this function returns zero, `value` isn't
744+
## Note that if this function returns `false`, `value` isn't
745745
## changed. This is important: if a feature is not present in a
746746
## `OpenTypeFeatures`, the feature is **NOT** treated as if its
747747
## value was zero anyway. Script-specific font shaping rules and
748748
## font-specific feature settings may use a different default value
749749
## for a feature. You should likewise not treat a missing feature as
750750
## having a value of zero either. Instead, a missing feature should
751751
## be treated as having some unspecified default value.
752+
752753
var val = uint32 value
753754

754755
result = bool openTypeFeaturesGet(otf.impl, a, b, c, d, addr val)

0 commit comments

Comments
 (0)