Skip to content

createFont() changes char array #197

Closed
@processing-bot

Description

@processing-bot

Created by: ertdfgcvb

Description

When passing a char[] as last parameter to createFont() the array is changed (sorted?) in place.

Expected Behavior

The array shouldn't be touched by the function.

Steps to Reproduce

void setup(){
    char[] c = {'c', 'b', 'a'};
    PFont f = createFont("Helvetica", 16, false, c);    
    println(c);
}
[0] 'a'
[1] 'b'
[2] 'c'

Your Environment

  • Processing version:
    4.0a3
  • Operating System and OS version:
  • MacOS 10.15.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions