GithubHelp home page GithubHelp logo

Comments (12)

frol avatar frol commented on June 12, 2024

Try using frolvlad/alpine-oraclejre8 / frolvlad/alpine-oraclejdk8 images instead of building your own image. Where did you get glibc 1.2?

from alpine-pkg-glibc.

liuwenru avatar liuwenru commented on June 12, 2024

sorry, my error , i use the repository glibc and the version is glibc-2.23-r3.apk, i want to know why it can not work? thinks

from alpine-pkg-glibc.

frol avatar frol commented on June 12, 2024

I have no idea, but you should try the latest glibc, which is already 2.27-r0. Give a try to the Docker images I referred above.

from alpine-pkg-glibc.

liuwenru avatar liuwenru commented on June 12, 2024

@frol i use the frolvlad/alpine-oraclejdk8 images to test code the same with worn

from alpine-pkg-glibc.

liuwenru avatar liuwenru commented on June 12, 2024

thks, i also test the 2.27-r0 version , it also do not work !

from alpine-pkg-glibc.

frol avatar frol commented on June 12, 2024

I have just read your comment between the two pictures and realized that there is no issue with the glibc, you are just missing the font. Alpine just doesn't ship too many fonts by default. You may try installing various ttf* packages from apk and see if that helps. Otherwise, just bundle your favorite font into the image.

from alpine-pkg-glibc.

liuwenru avatar liuwenru commented on June 12, 2024

@frol yes , i test the way that i drop the font file (ttf) to ${JRE_HOME}/lib/fonts/fallback, it can works but i want use my own ttf in my program, now i want know why it can not work , can give some debug methods ? thinks , my english is poor.

from alpine-pkg-glibc.

frol avatar frol commented on June 12, 2024

I want use my own ttf in my program

So you do, you use your own font from what I see, and it is working fine, isn't it? I don't understand what is your problem then.

from alpine-pkg-glibc.

liuwenru avatar liuwenru commented on June 12, 2024

the problem is :

  • in the env(centos+oracle jdk1.8), i run the code it can draw the picture use my own fonts,the reset is follow picture:

  • when i do not use the docker images(build with alpine3.4+ sgerrand/alpine-pkg-glibc + Oracle JDK1.8 ), the same code , but it can not draw the picture
    image


PS: i use the sgerrand/alpine-pkg-glibc with 2.27-r0 and use this images https://github.com/oracle/docker-images , all of them is error!

from alpine-pkg-glibc.

frol avatar frol commented on June 12, 2024

This just means that CentOS has the necessary font by default and Alpine does not. You should create an image with the necessary font. You may want to start with copying all the fonts from the CentOS image to Alpine image and then, once you know which font you need, you may try to find a package in Alpine repository and install it in your Dockerfile.

from alpine-pkg-glibc.

liuwenru avatar liuwenru commented on June 12, 2024

but the font file is my own design, alpine repository do not have , so i will use Font.createFont("my own font file") method to create it, but now it do not work

from alpine-pkg-glibc.

sgerrand avatar sgerrand commented on June 12, 2024

Thank you for filing this issue and apologies for the late reply. Unfortunately this issue as stated is related solely with your Java code and runtime environment, not this package.

from alpine-pkg-glibc.

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.