Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute を増やす #25

Open
rrbox opened this issue Dec 22, 2022 · 2 comments
Open

Attribute を増やす #25

rrbox opened this issue Dec 22, 2022 · 2 comments

Comments

@rrbox
Copy link
Owner

rrbox commented Dec 22, 2022

NSAttributedString の API を見ても, もっと制御可能であることがわかります。サポートする Attribute の範囲を広げたいです。

@rrbox
Copy link
Owner Author

rrbox commented Dec 27, 2022

  • kern : 文字間隔
  • tracking : 文字の幅に合わせて文字が広がる. この時の文字間隔を調整できる.
  • baselineOffset : 文字を垂直方向に移動する.

こっから下は、SwiftUI では確認できないかもしれません

  • obliqueness : 文字の傾斜度(?)MacOS SwiftUI で確認したが、違いがわからなかった
  • shadow
  • ligature : 合字 (iOS ではサポートされていないので、Tsumiji では使わない)
  • glyphInfo : glyph information (iOS は無効)
  • strikethroughColor
  • strokeColor
  • strokeWidth
  • textEffect
  • underlineColor
  • underlineStyle
  • attachment
  • expansion
  • cursor
  • toolTip
  • textAlternatives
  • markedClauseSegment
  • paragraphStyle
  • superscript

@rrbox rrbox added the type: Enhancement New feature or request label Apr 14, 2023
@rrbox
Copy link
Owner Author

rrbox commented May 1, 2023

#34 を同時進行しています。どちらをマージするべきか検討中です。
また、SwiftUI で使用可能(本当かどうか未検証)と思われる物だけを実装しました。UIKit, AppKit で使用可能かどうか、そして他のプロパティは実装できるのかについても確認したいところです。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant