SVG Text

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ธ.ค. 2024

ความคิดเห็น • 21

  • @uda911
    @uda911 9 ปีที่แล้ว +6

    Man this is super helpful. I am learning D3, but decided to go through all your vids for SVG and now D3 is making much more sense.

    • @JakobJenkov
      @JakobJenkov  4 ปีที่แล้ว +2

      Great to hear :-) After all, D3 is often used to generate SVG :-). Also the D3 syntax / API design is inspired by jQuery, so if you know jQuery then D3 is also easier to understand.

  • @nishantsinghraj7098
    @nishantsinghraj7098 4 ปีที่แล้ว +1

    Can I find the exact height and width occupied by SVG text? What are the parameters on which the height and width depends? Only on font-size and letter spacing? What is the exact relation or formula to retrieve these from SVG text?

    • @JakobJenkov
      @JakobJenkov  4 ปีที่แล้ว +1

      No, you cannot find the exact height and width occupied by an SVG text, unfortunately (at least not that I know of). It is possible with an HTML 5 Canvas to measure the width of a text before drawing it - see here:
      tutorials.jenkov.com/html5-canvas/text.html#measuring-text-width

    • @nishantsinghraj7098
      @nishantsinghraj7098 4 ปีที่แล้ว

      @@JakobJenkov I wanted to create a SVG through my code using the data extracted from image processing, since image processing has only height and width and coordinates with it, I had to use any relation for creating that SVG. Any help in that case?

  • @nathenn
    @nathenn 4 ปีที่แล้ว +1

    how i can use google fonts in my logo width SVG?

    • @JakobJenkov
      @JakobJenkov  4 ปีที่แล้ว

      That's a good question! I don't know, actually. Maybe you can change the font in SVG 2.0

  • @sovereignlivingsoul
    @sovereignlivingsoul 10 หลายเดือนก่อน

    very clear explanation, at a good time in my design stage, thank you

    • @JakobJenkov
      @JakobJenkov  10 หลายเดือนก่อน

      You are welcome ! :-)

  • @horizoncoding_
    @horizoncoding_ 5 ปีที่แล้ว +1

    thanks for the tutorial (y). I have a question please, why would you use SVG text over HTML text? thanks

    • @JakobJenkov
      @JakobJenkov  5 ปีที่แล้ว +1

      Because you can use SVG text inside SVG diagrams. You can bend SVG text, and add effects to it which are not possible with HTML text (at least not at the time I made this video).

    • @horizoncoding_
      @horizoncoding_ 5 ปีที่แล้ว

      @@JakobJenkov I see, thanks.

    • @horizoncoding_
      @horizoncoding_ 5 ปีที่แล้ว

      ​@@JakobJenkov thanks, very interesting indeed.

  • @photinoman
    @photinoman 7 ปีที่แล้ว

    I could not add Add < sign
    How to add comparison signs in a text element? Thanks

  • @rejam
    @rejam 6 ปีที่แล้ว

    Fantastic svg videos. Thank you very much!

  • @salesforceWithParamita
    @salesforceWithParamita 2 ปีที่แล้ว +1

    excellent tutorial. Thanks a lot.

    • @JakobJenkov
      @JakobJenkov  2 ปีที่แล้ว

      Thank you! ... and you are welcome ! :-)

  • @raamch
    @raamch 2 ปีที่แล้ว +1

    Great stuff

  • @TheSirgo23
    @TheSirgo23 2 หลายเดือนก่อน

    Hi do you know how to apply antialiasing property to text svg? The text rendering attribute doesn't seem to change anything :(

    • @JakobJenkov
      @JakobJenkov  2 หลายเดือนก่อน +1

      No, I don't know that, unfortunately