text-rendering

Possibilities to embed Latex in QML

£可爱£侵袭症+ 提交于 2019-12-04 22:56:04
问题 I'm doing a presentation system in QML (with C++ backend) similar to this one. I want to be able to include some Latex code to display some math (only minimum Latex capabilities needed, such as sums, fractions, super- and substript and math fonts). I see the following possibilities to do so: Using latex2e : Compile the Latex code to a DVI document (with latex ) Convert the DVI to SVG (with dvisvgm ) Display this using an Image in QML (which also supports SVG) Using MathJax : Wrap the Latex

WPF application freezes when rendering text (wpfgfx issues)

帅比萌擦擦* 提交于 2019-12-04 04:23:11
TL;DR: application is built with WPF, running on .Net 3.5 newest and older versions of the app work properly on many different machines on one specific machine it malfunctions in a strange way: either does not start, displays black screen instead of "welcome" screen; can't do anything on that black screen or does start and works properly, until a TextBox is presented and until the user starts entering the text into it; then application immediatelly hangs Background: I have built a WPF application on .Net 3.5. I've checked the application on various machines with different OS, ranging from

How can I achieve pixel-perfect positioning and spacing of textual elements across browsers?

家住魔仙堡 提交于 2019-12-03 22:22:36
Right now, we are trying to achieve consistent formatting of textarea elements, across Safari/Chrome/Firefox/IE on Mac and Windows. I believe this may be a rabbit hole, since any combination thereof could produce formatting in a slightly different way -- maybe one combination adds a bit of padding to a div here differently than the others, another one breaks multi-line text there differently than the others, and so on. Instead of using textarea (or div ) elements, can we achieve pixel-perfect positioning using HTML5's canvas ? Or using the Raphael JavaScript library? Or maybe some other JS

Possibilities to embed Latex in QML

好久不见. 提交于 2019-12-03 14:10:49
I'm doing a presentation system in QML (with C++ backend) similar to this one . I want to be able to include some Latex code to display some math (only minimum Latex capabilities needed, such as sums, fractions, super- and substript and math fonts). I see the following possibilities to do so: Using latex2e : Compile the Latex code to a DVI document (with latex ) Convert the DVI to SVG (with dvisvgm ) Display this using an Image in QML (which also supports SVG) Using MathJax : Wrap the Latex code in a small HTML file + include the MathJax JS library Display this using WebKit for QML Custom

How to work around poor text rendering in text backed by a CALayer

瘦欲@ 提交于 2019-12-03 04:34:54
问题 I have some variable text in an NSTextField that renders on a CALayer background view. As a CALayer does not support sub-pixel aliasing for text rendering of any text on top of it, this text looks rubbish. A bit of googling reveals the reasons why this is, and that text must be rendered onto an opaque background to have SPA enabled. Rendering onto an opaque background is something I'd like to avoid if at all possible in this case. Is there a better workaround? I am completely amenable to

How to work around poor text rendering in text backed by a CALayer

爷,独闯天下 提交于 2019-12-02 18:53:19
I have some variable text in an NSTextField that renders on a CALayer background view. As a CALayer does not support sub-pixel aliasing for text rendering of any text on top of it, this text looks rubbish. A bit of googling reveals the reasons why this is, and that text must be rendered onto an opaque background to have SPA enabled. Rendering onto an opaque background is something I'd like to avoid if at all possible in this case. Is there a better workaround? I am completely amenable to rendering the text myself into an NSImage , if that will help, but I can't find any confirmed reports that

library for text rendering that supports text-on-path

这一生的挚爱 提交于 2019-12-01 09:56:16
问题 I need a good, reliable library or toolchain for programatically rendering text to png, with different sizes, fonts, weights, etc. It also needs to be able to render text in an arc or to a path. I would like it to be fast, because I'd be running it as on a server. I've tried using SVG and librsvg , but that doesn't render <textPath> elements. I've tried pycairo , but again, the text to path doesn't work great, and everywhere in the cairo documentation it mentions that text-to-path is a "toy"

Display text in a cuved format

99封情书 提交于 2019-12-01 09:21:24
问题 I am looking to draw some text in curved format. It doesn't matter which control I use: UITextField , UILabel or UITextView . I just want to show text something like shown in the image Still looking for solution. Please help ? 回答1: Check out this link. Though this is for mac, i think you can port it for ios ABOVE LINK IS OUT DATED. PLEASE FIND YOUR SOLUTION FROM THIS LINK Other thing I can think is not an easy way out. Take a string as an array of letters, Take labels for each later and

HarfBuzz getting started [closed]

不羁的心 提交于 2019-11-30 09:22:11
I cannot find the guide to get started with using HarfBuzz in my own app. I looked here: http://freedesktop.org/wiki/Software/HarfBuzz/ This seems to be the official page of HarfBuzz. I looked over Download, Building and Development sections. But I must be overlooking something. Some good and simple examples are listed on Harfbuzz wiki , 1 , 2 I suggest you a higher level library, Pango if you need layout things like line wrap and I guess you would find better doucmentation for it than HarfBuzz itself. You may have a look at State of Text Rendering also. I was facing the same issue and was

Text not rendering correctly - OpenGL using FreeType2

↘锁芯ラ 提交于 2019-11-29 15:28:34
Almost exact duplicate question: OpenGL font rendering using Freetype2 . I am trying to render text in my OpenGL program using FreeType2 (2.5.3), based on this tutorial: http://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Tutorial_Text_Rendering_02 , using the same structs as Bentebent did in his question (above). I am having the same problem he was having with rectangles showing up instead of legible characters (even using the correct GL_TEXTURE0 parameter for glActiveTexture() ) For example, rendering green strings "Hello" and "World" below it gives me this: As with Bentebent,