only use individual letterDelays

This commit is contained in:
jrkb 2023-06-09 17:52:05 +02:00
parent e66e5ae502
commit 73d17b2a03

View file

@ -114,7 +114,7 @@ void GPUFontLayer::setProps(const Props & props){
|| lastProps.letterSpacing != props.letterSpacing || lastProps.letterSpacing != props.letterSpacing
|| lastProps.color != props.color)){ || lastProps.color != props.color)){
for(int i = 0; i < props.text.size(); i++){ for(int i = 0; i < props.text.size(); i++){
const Props & vProps = propsBufferEmpty ? props : getProps(i * props.letterDelay); const Props & vProps = propsBufferEmpty ? props : getProps(i);
ofxGPUFont::GlyphAppearance & glyphAppearance = variationTextAppearance[i]; ofxGPUFont::GlyphAppearance & glyphAppearance = variationTextAppearance[i];
glyphAppearance.fontSize_px = vProps.fontSize_px; glyphAppearance.fontSize_px = vProps.fontSize_px;
glyphAppearance.letterSpacing = vProps.letterSpacing; glyphAppearance.letterSpacing = vProps.letterSpacing;