C
C
cs0ip2015-08-26 20:12:52
MySQL
cs0ip, 2015-08-26 20:12:52

How to customize font rendering in JavaFX?

In my application on JavaFX 8, fonts are rendered somehow ugly. This also applies to other JavaFX applications, such as SceneBuilder. At the same time, the screenshot shows that Intelij Idea, for example, looks good. Maybe it's a combination of OS / video card (Linux Mint 17.2 / AMD hd 7870). Is there a way to tweak font rendering somehow?
cd139c18005a4e69a33b02f02045eb48.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2019-03-06
@slo_nik

Good afternoon.
Rename the "id" associated with the image in the comments table to "image_id".
Also add "id PRIMARY KEY AUTO_INCREMENT" for the comment

ALTER TABLE `comments`
  ADD CONSTRAINT `fk_comments_images` FOREIGN KEY (`image_id`) REFERENCES `comments` (`id`) ON DELETE CASCADE;

If there are already entries in the comment and image tables, you may need to disable then re-enable foreign key checking.
SET FOREIGN_KEY_CHECKS=0;
ALTER TABLE `comments`
  ADD CONSTRAINT `fk_comments_images` FOREIGN KEY (`image_id`) REFERENCES `comments` (`id`) ON DELETE CASCADE;
SET FOREIGN_KEY_CHECKS=1;

C
Chupaka, 2019-03-07
@Chupaka

In a good way, one entity - one table. In your case, you can look at the triggers: a line is deleted - we clean the database according to any parameters.

B
Beholder, 2015-08-27
@cs0ip

Only IDEA does not use JavaFx.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question