GithubHelp home page GithubHelp logo

allow different bullet tags about ftcoretext HOT 2 OPEN

liveui avatar liveui commented on August 26, 2024
allow different bullet tags

from ftcoretext.

Comments (2)

cescofry avatar cescofry commented on August 26, 2024

We are planning to redefine the style object to hold information about the kind of style they represent. With this change you would be able to call a _bullet as you wish and therefor have more and different styles for it. Unfortunately we are pretty busy at the moment so there is not a scheduled date for it.
If you are willing to collaborate I can maybe point out some explanation on how to achieve this.

from ftcoretext.

algal avatar algal commented on August 26, 2024

Hi Francesco,

I submitted two issues because I suspect these are two separate matters -- (1) custom bullet tags (which would allow diverse bullets in one view), and (2) "blockquote"-like indentation of text associated with bullet item text.

(Maybe there is actually a third, (3) bullet glyph styles distinct from bullet item text styles.)

The second issue is the most important to me. One way or another I need to get this effect. I'd be glad to do this by adding the capacity to FTCoreText, but I think I would need some pointers from you on your codebase so I could do it efficiently.

Right now, I'm guessing the CoreText way would be to set different values for the kCTParagraphStyleSpecifierFirstLineHeadIndent and kCTParagraphStyleSpecifierHeadIndent paragraph style specifiers. I notice that FTCoreText doesn't expose the distinction between these right now (lines 833-834).

Another alternative would be to use CoreText's tab functionality, but I'm not too familiar with it. I can see that FTCoreText is configuring it around lines 862-890.

What I like about FTCoreText is that it seems like a relatively thin wrapper around CoreText. So I'd hope this functionality could be added in a way that's natural.

Alexis

On Feb 15, 2012, at 00:25, Francesco wrote:

We are planning to redefine the style object to hold information about the kind of style they represent. With this change you would be able to call a _bullet as you wish and therefor have more and different styles for it. Unfortunately we are pretty busy at the moment so there is not a scheduled date for it.
If you are willing to collaborate I can maybe point out some explanation on how to achieve this.


Reply to this email directly or view it on GitHub:
#5 (comment)

from ftcoretext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.