Skip to content

Improve FontData Copying: Replace String Constructor with Safer Approach #296

@ShahzaibIbrahim

Description

@ShahzaibIbrahim

Currently, we use the FontData(String) constructor to create a deep copy of a FontData object. Although this works per the API contract, it is not a robust or future-proof approach. To improve safety and maintainability, we should introduce a dedicated copy constructor like FontData(FontData) or a createCopy() method. This will ensure clearer intent and reduce the risk of errors if the internal behavior of FontData(String) changes.

Metadata

Metadata

Labels

HiDPIA HiDPI-Related Issue or FeatureSWTIssue for SWT

Type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions